Struct ShapeCastHit3D
#[repr(C)]pub struct ShapeCastHit3D {
pub collider_id: u32,
pub toi: f32,
pub point: [f32; 3],
pub normal: [f32; 3],
}Expand description
Hit result returned by cast_sphere and cast_capsule.
Fields§
§collider_id: u32Index of the hit collider.
toi: f32Travel distance along dir at initial contact (0.0 <= toi <= max_dist).
point: [f32; 3]Contact point in world space.
normal: [f32; 3]Outward surface normal in world space.
Trait Implementations§
§impl Clone for ShapeCastHit3D
impl Clone for ShapeCastHit3D
§fn clone(&self) -> ShapeCastHit3D
fn clone(&self) -> ShapeCastHit3D
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShapeCastHit3D
§impl Debug for ShapeCastHit3D
impl Debug for ShapeCastHit3D
§impl PartialEq for ShapeCastHit3D
impl PartialEq for ShapeCastHit3D
impl StructuralPartialEq for ShapeCastHit3D
Auto Trait Implementations§
impl Freeze for ShapeCastHit3D
impl RefUnwindSafe for ShapeCastHit3D
impl Send for ShapeCastHit3D
impl Sync for ShapeCastHit3D
impl Unpin for ShapeCastHit3D
impl UnsafeUnpin for ShapeCastHit3D
impl UnwindSafe for ShapeCastHit3D
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