Click or drag to resize
DigitalRuneTwistSwingLimitGetPointOnCone Method
Gets a point on the swing limit cone (for debug visualization).

Namespace: DigitalRune.Physics.Constraints
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public Vector3F GetPointOnCone(
	float angle,
	Vector3F coneTip,
	float distanceFromTip
)

Parameters

angle
Type: SystemSingle
The angle about the twist axis in radians.
coneTip
Type: DigitalRune.Mathematics.AlgebraVector3F
The position of the tip of the cone.
distanceFromTip
Type: SystemSingle
The distance from tip.

Return Value

Type: Vector3F
A point that lies on the cone. The distance to the tip of the cone is distanceFromTip.
Remarks
The swing limits form a deformed cone around the twist axis. This method can be used to get points to draw a debug visualization of the swing limit cone. Call this method for angles between 0 to 360°. Draw lines between neighbor points and the points and the cone tip. This creates a wire frame visualization of the swing limit cone.
See Also