pub struct CollisionResult3D {
pub normal: Vector3D,
pub depth: f64,
/* private fields */
}Expand description
The result of a collision check between two 3D colliders, containing the contact normal and penetration depth if they overlap.
Fields§
§normal: Vector3DThe minimum translation vector (MTV) pointing from the first collider to the second.
get_normal is public because tests/collider/fn.rs reads this field from
outside this crate. get_mut / set stay crate-internal.
depth: f64The penetration depth (how far the colliders overlap along the normal).
get_depth is public because tests/collider/fn.rs reads this field from
outside this crate. get_mut / set stay crate-internal.
Implementations§
Trait Implementations§
Source§impl Clone for CollisionResult3D
impl Clone for CollisionResult3D
impl Copy for CollisionResult3D
Source§impl Debug for CollisionResult3D
impl Debug for CollisionResult3D
Source§impl Default for CollisionResult3D
impl Default for CollisionResult3D
Source§impl PartialEq for CollisionResult3D
impl PartialEq for CollisionResult3D
Source§impl PartialOrd for CollisionResult3D
impl PartialOrd for CollisionResult3D
impl StructuralPartialEq for CollisionResult3D
Auto Trait Implementations§
impl Freeze for CollisionResult3D
impl RefUnwindSafe for CollisionResult3D
impl Send for CollisionResult3D
impl Sync for CollisionResult3D
impl Unpin for CollisionResult3D
impl UnsafeUnpin for CollisionResult3D
impl UnwindSafe for CollisionResult3D
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