pub struct AnimBlendTree<T: Transform> { /* fields omitted */ }
Initialize a new AnimBlendTree from the root BlendTreeNodeDef and
a mapping from animation names to AnimationClip
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
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
global_time
- The current global clock time from the controller
params
- A mapping from ParamIds to their current parameter values
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> SetParameter for T | |
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where T: Parameter<Self>, | |
Sets value
as a parameter of self
.