pub enum BlendTree {
Clip {
clip_name: String,
speed: f32,
},
Linear1D {
param: String,
children: Vec<(f32, BlendTree)>,
},
Directional2D {
param_x: String,
param_y: String,
children: Vec<([f32; 2], BlendTree)>,
},
Additive {
base: Box<BlendTree>,
additive: Box<BlendTree>,
weight_param: Option<String>,
weight: f32,
},
Override {
base: Box<BlendTree>,
overlay: Box<BlendTree>,
mask: Vec<String>,
weight: f32,
},
}Expand description
A blend tree node — either a leaf (clip) or a blend operation.
Variants§
Clip
Leaf: single clip.
Linear1D
1D blend: interpolate between multiple clips by a float parameter.
Directional2D
2D directional blend (blend by 2D vector param).
Additive
Additive blend: play base + additive on top.
Override
Override: apply second layer over first on masked channels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlendTree
impl RefUnwindSafe for BlendTree
impl Send for BlendTree
impl Sync for BlendTree
impl Unpin for BlendTree
impl UnsafeUnpin for BlendTree
impl UnwindSafe for BlendTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more