Click or drag to resize

MathHelperGetPositionAtDistance Method

Returns the point at a certain distance from a another point.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static Vector3 GetPositionAtDistance(
	Vector3 destination,
	Vector3 origin,
	float distance
)
Request Example View Source

Parameters

destination
Type: Vector3
The target point.
origin
Type: Vector3
Current position.
distance
Type: SystemSingle
Distance to maintain.

Return Value

Type: Vector3
See Also