Click or drag to resize
DigitalRuneSkeletonGetParent Method
Gets the index of the parent bone of a given bone.

Namespace: DigitalRune.Animation.Character
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public int GetParent(
	int boneIndex
)

Parameters

boneIndex
Type: SystemInt32
The bone index.

Return Value

Type: Int32
The bone index of the parent bone, or -1 if the bone is a root bone that does not have a parent bone.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionboneIndex is out of range.
See Also