Universe.Physics.BulletSPlugin.BSActorAvatarMove.SetVelocityAndTargetInternal C# (CSharp) Method

SetVelocityAndTargetInternal() private method

private SetVelocityAndTargetInternal ( OpenMetaverse vel, OpenMetaverse targ, bool inTaintTime, int targetValueDecayTimeScale ) : void
vel OpenMetaverse
targ OpenMetaverse
inTaintTime bool
targetValueDecayTimeScale int
return void
        void SetVelocityAndTargetInternal(OMV.Vector3 vel, OMV.Vector3 targ, bool inTaintTime,
            int targetValueDecayTimeScale)
        {
            m_physicsScene.TaintedObject(inTaintTime, m_controllingPrim.LocalID, "BSActorAvatarMove.setVelocityAndTarget", delegate ()
            {
                if (m_velocityMotor != null)
                {
                    m_velocityMotor.Reset();
                    m_velocityMotor.SetTarget(targ);
                    m_velocityMotor.SetCurrent(vel);
                    m_velocityMotor.TargetValueDecayTimeScale = targetValueDecayTimeScale;
                    m_velocityMotor.Enabled = true;
                }
            });
        }