AnimationPoseExt

Trait AnimationPoseExt 

Source
pub trait AnimationPoseExt {
    // Required methods
    fn apply_internal(&self, nodes: &mut NodePool);
    fn apply(&self, graph: &mut Graph);
    fn apply_with<C>(&self, graph: &mut Graph, callback: C)
       where C: FnMut(&mut Node, Handle<Node>, &NodePose);
}
Expand description

Extension trait for AnimationPose.

Required Methods§

Source

fn apply_internal(&self, nodes: &mut NodePool)

Tries to set each value to the each property from the animation pose to respective scene nodes.

Source

fn apply(&self, graph: &mut Graph)

Tries to set each value to the each property from the animation pose to respective scene nodes.

Source

fn apply_with<C>(&self, graph: &mut Graph, callback: C)
where C: FnMut(&mut Node, Handle<Node>, &NodePose),

Calls given callback function for each node and allows you to apply pose with your own rules. This could be useful if you need to ignore transform some part of pose for a node.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§