| SkeletonHelperSetBoneRotationAbsolute Method |
Sets the bone rotation of a bone so that it matches the given rotation in model space.
Namespace: DigitalRune.Animation.CharacterAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public static void SetBoneRotationAbsolute(
this SkeletonPose skeletonPose,
int boneIndex,
QuaternionF rotation
)
<ExtensionAttribute>
Public Shared Sub SetBoneRotationAbsolute (
skeletonPose As SkeletonPose,
boneIndex As Integer,
rotation As QuaternionF
)
public:
[ExtensionAttribute]
static void SetBoneRotationAbsolute(
SkeletonPose^ skeletonPose,
int boneIndex,
QuaternionF rotation
)
[<ExtensionAttribute>]
static member SetBoneRotationAbsolute :
skeletonPose : SkeletonPose *
boneIndex : int *
rotation : QuaternionF -> unit
Parameters
- skeletonPose
- Type: DigitalRune.Animation.CharacterSkeletonPose
The skeleton pose. - boneIndex
- Type: SystemInt32
The index of the bone. - rotation
- Type: DigitalRune.Mathematics.AlgebraQuaternionF
The rotation in model space.
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