[][src]Struct skeletal_animation::blend_tree::AnimBlendTree

pub struct AnimBlendTree<T: Transform> { /* fields omitted */ }

A tree of AnimNodes

Methods

impl<T: Transform> AnimBlendTree<T>
[src]

pub fn from_def(
    def: BlendTreeNodeDef,
    animations: &HashMap<ClipId, Rc<AnimationClip<T>>>,
    skeleton: Rc<Skeleton>
) -> AnimBlendTree<T>
[src]

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

pub fn get_output_pose(
    &self,
    time: f32,
    params: &HashMap<String, f32>,
    output_poses: &mut [T]
)
[src]

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

pub fn synchronize(&mut self, global_time: f32, params: &HashMap<String, f32>)
[src]

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

impl<T> !Send for AnimBlendTree<T>

impl<T> !Sync for AnimBlendTree<T>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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.