pub struct RayHit {
pub position: [f32; 3],
pub normal: [f32; 3],
pub distance: f32,
pub body_index: usize,
}Expand description
Raycast hit result.
Fields§
§position: [f32; 3]§normal: [f32; 3]§distance: f32§body_index: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for RayHit
impl RefUnwindSafe for RayHit
impl Send for RayHit
impl Sync for RayHit
impl Unpin for RayHit
impl UnsafeUnpin for RayHit
impl UnwindSafe for RayHit
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