pub struct AnimBlendTree<T: Transform> { /* private fields */ }
Expand description

A tree of AnimNodes

Implementations

Initialize a new AnimBlendTree from the root BlendTreeNodeDef and a mapping from animation names to AnimationClip

Arguments
  • def - The root BlendTreeNodeDef
  • animations - A mapping from ClipIds to shared AnimationClip instances

Get the output skeletal pose from the blend tree for the given time and parameters

Arguments
  • time - The time to sample from any AnimationClips
  • params - A mapping from ParamIds to their current parameter values
  • output_poses - The output array slice of joint transforms that will be populated according to the defined output for this BlendTreeNode

For each LerpNode with two animation clips, synchronize their playback rates according to the blend parameter

Arguments
  • global_time - The current global clock time from the controller
  • params - A mapping from ParamIds to their current parameter values

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.