Universe.Physics.BulletSPlugin.BSPrim.ZeroAngularMotion C# (CSharp) Method

ZeroAngularMotion() public method

public ZeroAngularMotion ( bool inTaintTime ) : void
inTaintTime bool
return void
        public override void ZeroAngularMotion(bool inTaintTime)
        {
            _rotationalVelocity = OMV.Vector3.Zero;
            // Zero some other properties in the physics engine
            PhysicsScene.TaintedObject(inTaintTime, "BSPrim.ZeroMotion", delegate()
            {
                // DetailLog("{0},BSPrim.ZeroAngularMotion,call,rotVel={1}", LocalID, _rotationalVelocity);
                if (PhysBody.HasPhysicalBody)
                {
                    PhysicsScene.PE.SetInterpolationAngularVelocity(PhysBody, _rotationalVelocity);
                    PhysicsScene.PE.SetAngularVelocity(PhysBody, _rotationalVelocity);
                }
            });
        }