void DeactivateSetForce() { if (m_forceMotor != null) { m_physicsScene.BeforeStep -= Mover; m_forceMotor = null; } }
void DeactivateSetTorque() { if (m_torqueMotor != null) { m_physicsScene.BeforeStep -= Mover; m_torqueMotor = null; } }
// 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; } }
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); }