示例#1
0
 internal void Disable(AuroraODEPrim parent)
 {
     if (!m_enabled || m_type == Vehicle.TYPE_NONE)
         return;
     m_enabled = false;
     parent.ThrottleUpdates = true;
     parent.ForceSetVelocity(Vector3.Zero);
     parent.ForceSetRotVelocity(Vector3.Zero);
     parent.ForceSetPosition(parent.Position);
     m_body = IntPtr.Zero;
     m_linearMotorDirection = Vector3.Zero;
     m_linearMotorDirectionLASTSET = Vector3.Zero;
     m_angularMotorDirection = Vector3.Zero;
 }
示例#2
0
        internal void Disable(AuroraODEPrim parent)
        {
            if (!m_enabled || m_type == Vehicle.TYPE_NONE)
                return;
            m_enabled = false;

            parent._parent_entity.Friction = m_previousFriction;//Revert to the original
            parent._parent_entity.Restitution = m_previousRestitution;

            parent.ThrottleUpdates = true;
            parent.ForceSetVelocity(Vector3.Zero);
            parent.ForceSetRotVelocity(Vector3.Zero);
            parent.ForceSetPosition(parent.Position);
            m_body = IntPtr.Zero;
            m_linearMotorDirection = Vector3.Zero;
            m_linearMotorDirectionLASTSET = Vector3.Zero;
            m_angularMotorDirection = Vector3.Zero;
        }