pub struct ContactPoint {
pub id: u64,
pub local_anchor1: Vec3,
pub local_anchor2: Vec3,
pub normal: Vec3,
pub normal_impulse: f32,
pub tangent_impulse: Vec3,
}Expand description
Diagnostics for a persistent contact. Anchors are in each body’s local space; normal and tangent impulse are in world space at the last solved substep.
Fields§
§id: u64§local_anchor1: Vec3§local_anchor2: Vec3§normal: Vec3§normal_impulse: f32§tangent_impulse: Vec3Trait Implementations§
Source§impl Clone for ContactPoint
impl Clone for ContactPoint
Source§fn clone(&self) -> ContactPoint
fn clone(&self) -> ContactPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContactPoint
impl Debug for ContactPoint
Source§impl Default for ContactPoint
impl Default for ContactPoint
Source§fn default() -> ContactPoint
fn default() -> ContactPoint
Returns the “default value” for a type. Read more
impl Copy for ContactPoint
Auto Trait Implementations§
impl Freeze for ContactPoint
impl RefUnwindSafe for ContactPoint
impl Send for ContactPoint
impl Sync for ContactPoint
impl Unpin for ContactPoint
impl UnwindSafe for ContactPoint
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