| SkeletonKeyFrameAnimationSetWeight Method |
Sets the weight for a specific bone animation channel.
Namespace: DigitalRune.Animation.CharacterAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public void SetWeight(
int boneIndex,
float weight
)
Public Sub SetWeight (
boneIndex As Integer,
weight As Single
)
public:
void SetWeight(
int boneIndex,
float weight
)
member SetWeight :
boneIndex : int *
weight : float32 -> unit
Parameters
- boneIndex
- Type: SystemInt32
The index of the bone. - weight
- Type: SystemSingle
The weight. Use 0 to disable the channel. Use 1 to fully enable the channel. If the weight
is less than 1, the animation of the bone is mixed with preceding animations. The default
weight of all bone animation channels is 1.
See Also