Click or drag to resize
DigitalRuneAnimationHelperComputeLinearVelocity Method
Computes the linear velocity that moves an object from the current position to a target position.

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public static Vector3F ComputeLinearVelocity(
	Vector3F currentPosition,
	Vector3F targetPosition,
	float deltaTime
)

Parameters

currentPosition
Type: DigitalRune.Mathematics.AlgebraVector3F
The current position.
targetPosition
Type: DigitalRune.Mathematics.AlgebraVector3F
The target position.
deltaTime
Type: SystemSingle
The time over which the movement takes place (in seconds).

Return Value

Type: Vector3F
The linear velocity vector. If an object is moved with this velocity starting at currentPosition, it will arrive at targetPosition after deltaTime seconds.
See Also