Esempio n. 1
0
 void DeactivateSetTorque()
 {
     if (m_torqueMotor != null)
     {
         m_physicsScene.BeforeStep -= Mover;
         m_torqueMotor              = null;
     }
 }
 void DeactivateSetForce()
 {
     if (m_forceMotor != null)
     {
         m_physicsScene.BeforeStep -= Mover;
         m_forceMotor = null;
     }
 }
Esempio n. 3
0
        // If a hover motor has not been created, create one and start the hovering.
        void ActivateSetTorque()
        {
            if (m_torqueMotor == null)
            {
                // A fake motor that might be used someday
                m_torqueMotor = new BSFMotor("setTorque", 1f, 1f, 1f, 1f);

                m_physicsScene.BeforeStep += Mover;
            }
        }
        // If a hover motor has not been created, create one and start the hovering.
        void ActivateSetTorque()
        {
            if (m_torqueMotor == null)
            {
                // A fake motor that might be used someday
                m_torqueMotor = new BSFMotor("setTorque", 1f, 1f, 1f, 1f);

                m_physicsScene.BeforeStep += Mover;
            }
        }
 public BSActorSetTorque(BSScene physicsScene, BSPhysObject pObj, string actorName)
     : base(physicsScene, pObj, actorName)
 {
     m_torqueMotor = null;
     m_physicsScene.DetailLog("{0},BSActorSetTorque,constructor", m_controllingPrim.LocalID);
 }
 void DeactivateSetTorque()
 {
     if (m_torqueMotor != null)
     {
         m_physicsScene.BeforeStep -= Mover;
         m_torqueMotor = null;
     }
 }
Esempio n. 7
0
 public BSActorSetTorque(BSScene physicsScene, BSPhysObject pObj, string actorName)
     : base(physicsScene, pObj, actorName)
 {
     m_torqueMotor = null;
     m_physicsScene.DetailLog("{0},BSActorSetTorque,constructor", m_controllingPrim.LocalID);
 }