pub struct ContactHit {
pub a: BodyHandle,
pub b: BodyHandle,
pub point: [f32; 3],
pub normal: [f32; 3],
pub impulse: f32,
}Expand description
One contact strong enough to pass the simulation’s force threshold.
Fields§
§a: BodyHandleOne side of the contact.
b: BodyHandleThe other side of the contact.
point: [f32; 3]Deepest contact point, in world space.
normal: [f32; 3]Unit-length normal, pointing from a toward b.
impulse: f32Total contact impulse magnitude.
Trait Implementations§
Source§impl Clone for ContactHit
impl Clone for ContactHit
Source§fn clone(&self) -> ContactHit
fn clone(&self) -> ContactHit
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 ContactHit
Auto Trait Implementations§
impl Freeze for ContactHit
impl RefUnwindSafe for ContactHit
impl Send for ContactHit
impl Sync for ContactHit
impl Unpin for ContactHit
impl UnsafeUnpin for ContactHit
impl UnwindSafe for ContactHit
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