| SkeletonHelperGetChain Method |
Gets the bone indices of a bone chain.
Namespace: DigitalRune.Animation.CharacterAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public static void GetChain(
this SkeletonPose skeletonPose,
int startBoneIndex,
int endBoneIndex,
List<int> boneIndices
)
<ExtensionAttribute>
Public Shared Sub GetChain (
skeletonPose As SkeletonPose,
startBoneIndex As Integer,
endBoneIndex As Integer,
boneIndices As List(Of Integer)
)
public:
[ExtensionAttribute]
static void GetChain(
SkeletonPose^ skeletonPose,
int startBoneIndex,
int endBoneIndex,
List<int>^ boneIndices
)
[<ExtensionAttribute>]
static member GetChain :
skeletonPose : SkeletonPose *
startBoneIndex : int *
endBoneIndex : int *
boneIndices : List<int> -> unit
Parameters
- skeletonPose
- Type: DigitalRune.Animation.CharacterSkeletonPose
The skeleton pose. - startBoneIndex
- Type: SystemInt32
Index of the start bone (root of the chain). Can be -1. - endBoneIndex
- Type: SystemInt32
Index of the end bone (tip of the chain). Must not be -1. - boneIndices
- Type: System.Collections.GenericListInt32
A list where the bone indices should be stored. Must not be .
The list is cleared before the new bones are added.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SkeletonPose. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also