pub struct Motion {
pub position: Vec3,
pub translation: Vec3,
pub grounded: bool,
pub ground_normal: Vec3,
pub support: Option<Support>,
pub stepped: bool,
pub blocked: bool,
pub candidates: usize,
pub recovery: Recovery,
pub support_motion: Option<SupportMotion>,
/* private fields */
}Fields§
§position: Vec3§translation: Vec3Displacement from this sweep’s origin. In Character::step this is the
final velocity-driven sweep, after carry and preliminary overlap recovery.
grounded: bool§ground_normal: Vec3§support: Option<Support>§stepped: bool§blocked: bool§candidates: usize§recovery: RecoveryCorrections across the entire public operation, including platform carry
and preliminary recovery in Character::step.
support_motion: Option<SupportMotion>Previous support’s carry for Character::step, even if the character
jumped or lost support later this tick. None for a sweep/teleport or if
the old support was absent, removed, a sensor or excluded by the mask.
Self::support instead describes walkable support at the final pose.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnwindSafe for Motion
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