Example #1
0
        public PhysicsEngine()
        {
            bodies = new List<RigidBody2D>();
            lines = new List<RigidBody2D>();
            constraints = new List<Constraint>();

            //By default, use a grid partition
            partition = new GridPartition(Vector2.Zero, new Vector2(20, 10), 40, 40);
        }
Example #2
0
 public PhysicsEngine(Partition p)
 {
     partition = p;
 }