pub struct RayHit<const D: usize> {
pub body: BodyHandle,
pub distance: f32,
pub point: [f32; D],
pub normal: [f32; D],
}Fields§
§body: BodyHandle§distance: f32§point: [f32; D]§normal: [f32; D]Unit surface normal pointing out of the hit collider.
Trait Implementations§
impl<const D: usize> Copy for RayHit<D>
impl<const D: usize> StructuralPartialEq for RayHit<D>
Auto Trait Implementations§
impl<const D: usize> Freeze for RayHit<D>
impl<const D: usize> RefUnwindSafe for RayHit<D>
impl<const D: usize> Send for RayHit<D>
impl<const D: usize> Sync for RayHit<D>
impl<const D: usize> Unpin for RayHit<D>
impl<const D: usize> UnwindSafe for RayHit<D>
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