Inheritance: BSMotor
示例#1
0
 void DeactivateSetForce()
 {
     if (m_forceMotor != null)
     {
         m_physicsScene.BeforeStep -= Mover;
         m_forceMotor = null;
     }
 }
示例#2
0
 void DeactivateSetTorque()
 {
     if (m_torqueMotor != null)
     {
         m_physicsScene.BeforeStep -= Mover;
         m_torqueMotor              = null;
     }
 }
示例#3
0
        // If a hover motor has not been created, create one and start the hovering.
        void ActivateSetForce()
        {
            if (m_forceMotor == null)
            {
                // A fake motor that might be used someday
                m_forceMotor = new BSFMotor("setForce", 1f, 1f, 1f, 1f);

                m_physicsScene.BeforeStep += Mover;
            }
        }
示例#4
0
 public BSActorSetForce(BSScene physicsScene, BSPhysObject pObj, string actorName)
     : base(physicsScene, pObj, actorName)
 {
     m_forceMotor = null;
     m_physicsScene.DetailLog("{0},BSActorSetForce,constructor", m_controllingPrim.LocalID);
 }
        // 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;
     }
 }
 void DeactivateSetForce()
 {
     if (m_forceMotor != null)
     {
         m_physicsScene.BeforeStep -= Mover;
         m_forceMotor = null;
     }
 }