void StartUp() { m_collisionConfiguration = new ErdeCollisionConfiguration(); m_collisionDispatcher = new CollisionDispatcher(m_collisionConfiguration); m_broadphaseInterface = new DbvtBroadphase(); m_constraintSolver = new SequentialmpulseConstraintSolver(); m_world = new DiscreteDynamicsWorld(m_collisionDispatcher, m_broadphaseInterface, m_constraintSolver, m_collisionConfiguration); m_world.Gravity = new Vector3(0.0f, -9.87f, 0.0f); }
public DiscreteDynamicsWorld(CollisionDispatcher a_dispatcher, BroadphaseInterface a_broadphase, ConstraintSolver a_solver, CollisionConfiguration a_configuration) { m_objectPtr = DiscreteDynamicsWorld_new(a_dispatcher.Ptr, a_broadphase.Ptr, a_solver.Ptr, a_configuration.Ptr); m_debugDrawerPtr = IntPtr.Zero; m_drawLineEvent = DrawLine; m_errorEvent = Error; m_collisionEvent = OnCollision; m_objectLookup = new Dictionary <IntPtr, CollisionObject>(); }