BEPUphysics.Paths.PathFollowing.EntityMover.GetLinearVelocity C# (CSharp) Метод

GetLinearVelocity() публичный статический Метод

Gets the angular velocity necessary to change an entity's orientation from the starting quaternion to the ending quaternion over time dt.
public static GetLinearVelocity ( System.Vector3 start, System.Vector3 end, float dt ) : System.Vector3
start System.Vector3 Initial position.
end System.Vector3 Final position.
dt float Time over which the angular velocity is to be applied.
Результат System.Vector3
        public static Vector3 GetLinearVelocity(Vector3 start, Vector3 end, float dt)
        {
            Vector3 offset;
            Vector3.Subtract(ref end, ref start, out offset);
            Vector3.Divide(ref offset, dt, out offset);
            return offset;
        }