public b2World(b2Vec2 gravity) { m_destructionListener = null; m_debugDraw = null; m_bodyList = null; m_jointList = null; m_bodyCount = 0; m_jointCount = 0; m_warmStarting = true; m_continuousPhysics = true; m_subStepping = false; m_stepComplete = true; m_allowSleep = true; m_gravity = gravity; m_flags = b2WorldFlags.e_clearForces; m_inv_dt0 = 0.0f; }
public void SetDestructionListener(b2DestructionListener listener) { m_destructionListener = listener; }
public b2World(b2Vec2 gravity) { m_destructionListener = null; m_debugDraw = null; m_bodyList = null; m_jointList = null; m_bodyCount = 0; m_jointCount = 0; m_warmStarting = true; m_continuousPhysics = true; m_subStepping = false; m_stepComplete = true; m_allowSleep = true; m_gravity = gravity; m_flags = b2WorldFlags.e_clearForces; m_inv_dt0 = 0.0f; // setup up our default Contact Manager m_contactManager = new b2ContactManager(); }