pub struct State {Show 17 fields
pub transitions: Vec<Transition>,
pub blend_tree_index: Vec<i64>,
pub blend_trees: Vec<Vec<BlendNode>>,
pub name_id: u32,
pub path_id: u32,
pub full_path_id: u32,
pub tag_id: u32,
pub speed_param: u32,
pub mirror_param: u32,
pub cycle_offset_param: u32,
pub time_param: u32,
pub speed: f32,
pub cycle_offset: f32,
pub ik_on_feet: bool,
pub write_default_values: bool,
pub looping: bool,
pub mirror: bool,
}Expand description
A state (StateConstant): its transitions, its blend trees (one per motion set; a plain clip is a tree of one
leaf), the CRC-32 of its name and path and the parameters that drive its speed, mirror, offset and time.
Fields§
§transitions: Vec<Transition>m_TransitionConstantArray.
blend_tree_index: Vec<i64>m_BlendTreeConstantIndexArray.
blend_trees: Vec<Vec<BlendNode>>m_BlendTreeConstantArray: each tree’s nodes (m_NodeArray).
name_id: u32m_NameID.
path_id: u32m_PathID.
full_path_id: u32m_FullPathID.
tag_id: u32m_TagID.
speed_param: u32m_SpeedParamID.
mirror_param: u32m_MirrorParamID.
cycle_offset_param: u32m_CycleOffsetParamID.
time_param: u32m_TimeParamID.
speed: f32m_Speed.
cycle_offset: f32m_CycleOffset.
ik_on_feet: boolm_IKOnFeet.
write_default_values: boolm_WriteDefaultValues.
looping: boolm_Loop.
mirror: boolm_Mirror.
Trait Implementations§
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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