pub struct RootMotionEvent {
pub target: SkinnedMeshHandle,
pub delta: [f32; 3],
}Expand description
Per-frame character displacement extracted from root-motion clips.
AnimationSystem publishes one event per animated target whose active
clips carry a baked root track, holding the frame’s blended displacement
in the mesh’s local space (unrotated, unscaled). Consumers – the
CharacterRig capsule drive in PhysicsSystem – map it through the
mesh’s model transform and move the character. Events, not components:
a missed frame must not accumulate.
Fields§
§target: SkinnedMeshHandleThe SkinnedMesh resource whose animation produced the displacement.
delta: [f32; 3]Displacement in the mesh’s local space for this frame.
Trait Implementations§
Source§impl Clone for RootMotionEvent
impl Clone for RootMotionEvent
Source§fn clone(&self) -> RootMotionEvent
fn clone(&self) -> RootMotionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RootMotionEvent
Auto Trait Implementations§
impl Freeze for RootMotionEvent
impl RefUnwindSafe for RootMotionEvent
impl Send for RootMotionEvent
impl Sync for RootMotionEvent
impl Unpin for RootMotionEvent
impl UnsafeUnpin for RootMotionEvent
impl UnwindSafe for RootMotionEvent
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