#[repr(C)]pub struct ContactPoint2D {
pub m_point: Vector2,
pub m_normal: Vector2,
pub m_relative_velocity: Vector2,
pub m_separation: f32,
pub m_normal_impulse: f32,
pub m_tangent_impulse: f32,
pub m_collider: i32,
pub m_other_collider: i32,
pub m_rigidbody: i32,
pub m_other_rigidbody: i32,
pub m_enabled: i32,
}Expand description
Fields§
§m_point: Vector2§m_normal: Vector2§m_relative_velocity: Vector2§m_separation: f32§m_normal_impulse: f32§m_tangent_impulse: f32§m_collider: i32§m_other_collider: i32§m_rigidbody: i32§m_other_rigidbody: i32§m_enabled: i32Trait Implementations§
Source§impl ClassIdentity for ContactPoint2D
impl ClassIdentity for ContactPoint2D
Source§impl Clone for ContactPoint2D
impl Clone for ContactPoint2D
Source§fn clone(&self) -> ContactPoint2D
fn clone(&self) -> ContactPoint2D
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContactPoint2D
Auto Trait Implementations§
impl Freeze for ContactPoint2D
impl RefUnwindSafe for ContactPoint2D
impl Send for ContactPoint2D
impl Sync for ContactPoint2D
impl Unpin for ContactPoint2D
impl UnwindSafe for ContactPoint2D
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)