コード例 #1
0
        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;
        }
コード例 #2
0
 public void SetDestructionListener(b2DestructionListener listener)
 {
     m_destructionListener = listener;
 }
コード例 #3
0
ファイル: b2World.cs プロジェクト: HarkDev/cocos2d-xna
        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();
        }
コード例 #4
0
ファイル: b2World.cs プロジェクト: Ratel13/cocos2d-x-for-xna
 public void SetDestructionListener(b2DestructionListener listener)
 {
     m_destructionListener = listener;
 }