pub struct RayHitPhysics3D { /* private fields */ }Expand description
Result of a 3D physics raycast against PhysicsWorld3D rigid bodies.
Implementations§
Source§impl RayHitPhysics3D
impl RayHitPhysics3D
pub fn get_body_index(&self) -> usize
pub fn get_mut_body_index(&mut self) -> &mut usize
pub fn set_body_index(&mut self, val: usize) -> &mut Self
pub fn get_distance(&self) -> f32
pub fn get_mut_distance(&mut self) -> &mut f32
pub fn set_distance(&mut self, val: f32) -> &mut Self
pub fn get_point(&self) -> Vec3
pub fn get_mut_point(&mut self) -> &mut Vec3
pub fn set_point(&mut self, val: Vec3) -> &mut Self
Trait Implementations§
Source§impl Clone for RayHitPhysics3D
impl Clone for RayHitPhysics3D
impl Copy for RayHitPhysics3D
Source§impl Debug for RayHitPhysics3D
impl Debug for RayHitPhysics3D
Source§impl PartialEq for RayHitPhysics3D
impl PartialEq for RayHitPhysics3D
impl StructuralPartialEq for RayHitPhysics3D
Auto Trait Implementations§
impl Forget for RayHitPhysics3D
impl Freeze for RayHitPhysics3D
impl Move for RayHitPhysics3D
impl RefUnwindSafe for RayHitPhysics3D
impl Send for RayHitPhysics3D
impl Sync for RayHitPhysics3D
impl Unpin for RayHitPhysics3D
impl UnsafeUnpin for RayHitPhysics3D
impl UnwindSafe for RayHitPhysics3D
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