Universe.Physics.BulletSPlugin.BSCharacter.ZeroMotion C# (CSharp) Method

ZeroMotion() public method

public ZeroMotion ( bool inTaintTime ) : void
inTaintTime bool
return void
        public override void ZeroMotion(bool inTaintTime)
        {
            RawVelocity = OMV.Vector3.Zero;
            _acceleration = OMV.Vector3.Zero;
            _rotationalVelocity = OMV.Vector3.Zero;

            // Zero some other properties directly into the physics engine
            PhysicsScene.TaintedObject(inTaintTime, "BSCharacter.ZeroMotion", delegate()
            {
                if (PhysBody.HasPhysicalBody)
                    PhysicsScene.PE.ClearAllForces(PhysBody);
            });
        }