#[repr(C)]pub struct ManifoldPoint {
pub point: Vec2,
pub anchor_a: Vec2,
pub anchor_b: Vec2,
pub separation: f32,
pub normal_impulse: f32,
pub tangent_impulse: f32,
pub total_normal_impulse: f32,
pub normal_velocity: f32,
pub id: u16,
pub persisted: bool,
}Expand description
A single contact point inside a contact manifold.
Fields§
§point: Vec2§anchor_a: Vec2§anchor_b: Vec2§separation: f32§normal_impulse: f32§tangent_impulse: f32§total_normal_impulse: f32§normal_velocity: f32§id: u16§persisted: boolImplementations§
Source§impl ManifoldPoint
impl ManifoldPoint
pub fn from_raw(raw: b2ManifoldPoint) -> Self
pub fn into_raw(self) -> b2ManifoldPoint
Trait Implementations§
Source§impl Clone for ManifoldPoint
impl Clone for ManifoldPoint
Source§fn clone(&self) -> ManifoldPoint
fn clone(&self) -> ManifoldPoint
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 ManifoldPoint
impl Debug for ManifoldPoint
Source§impl Default for ManifoldPoint
impl Default for ManifoldPoint
Source§fn default() -> ManifoldPoint
fn default() -> ManifoldPoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for ManifoldPoint
impl PartialEq for ManifoldPoint
impl Copy for ManifoldPoint
impl StructuralPartialEq for ManifoldPoint
Auto Trait Implementations§
impl Freeze for ManifoldPoint
impl RefUnwindSafe for ManifoldPoint
impl Send for ManifoldPoint
impl Sync for ManifoldPoint
impl Unpin for ManifoldPoint
impl UnsafeUnpin for ManifoldPoint
impl UnwindSafe for ManifoldPoint
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