pub struct CollisionResult {
pub ground: Option<Ground>,
pub push: Vector<f32>,
}Expand description
The combined result of resolving a capsule against a CollisionWorld.
Fields§
§ground: Option<Ground>The walkable ground supporting the capsule, if any.
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