상속: 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;
     }
 }