pub struct Recovery {
pub translation: Vec3,
pub distance: f32,
pub iterations: u32,
pub max_depth: f32,
}Expand description
Overlap corrections performed during one successful move, step or teleport.
This excludes requested motion, platform carry and ground snap. Errors still
return no partial motion and leave a Character unchanged.
Fields§
§translation: Vec3Sum of all separation corrections, including corrections before platform carry.
distance: f32Sum of correction lengths, bounded by CharacterSettings::max_recovery.
iterations: u32Number of applied separation corrections; clearance checks are not counted.
max_depth: f32Largest penetration depth encountered before a correction (excluding skin).
Trait Implementations§
impl Copy for Recovery
impl StructuralPartialEq for Recovery
Auto Trait Implementations§
impl Freeze for Recovery
impl RefUnwindSafe for Recovery
impl Send for Recovery
impl Sync for Recovery
impl Unpin for Recovery
impl UnwindSafe for Recovery
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