pub struct CollisionResult {
pub grounded: bool,
pub ground_y: f32,
pub ground_normal: Vector<f32>,
pub push: Vector<f32>,
}Expand description
The combined result of resolving a capsule against a CollisionWorld.
Fields§
§grounded: boolWhether the capsule is supported by walkable ground.
ground_y: f32The height of the supporting ground, or negative infinity when not grounded.
ground_normal: Vector<f32>The face normal of the supporting ground, or straight up when not grounded.
push: Vector<f32>The accumulated displacement pushing the capsule out of steep geometry.
Auto Trait Implementations§
impl Freeze for CollisionResult
impl RefUnwindSafe for CollisionResult
impl Send for CollisionResult
impl Sync for CollisionResult
impl Unpin for CollisionResult
impl UnsafeUnpin for CollisionResult
impl UnwindSafe for CollisionResult
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