pub struct ManifoldPoint {
pub anchor_a: Vec3,
pub anchor_b: Vec3,
pub separation: f32,
pub base_separation: f32,
pub normal_impulse: f32,
pub total_normal_impulse: f32,
pub normal_velocity: f32,
pub feature_id: u32,
pub triangle_index: i32,
pub persisted: bool,
}Expand description
One point in a contact manifold.
Fields§
§anchor_a: Vec3Contact anchor on shape A in local contact coordinates.
anchor_b: Vec3Contact anchor on shape B in local contact coordinates.
separation: f32Current separation at the contact point.
base_separation: f32Separation before solver updates.
normal_impulse: f32Normal impulse applied at this point during the current solve.
total_normal_impulse: f32Accumulated normal impulse for this contact point.
normal_velocity: f32Relative normal velocity at the contact point.
feature_id: u32Feature id used by Box3D to track contact persistence.
triangle_index: i32Triangle index for mesh or height-field contacts, or Box3D’s sentinel value.
persisted: boolWhether this contact point persisted from the previous step.
Implementations§
Source§impl ManifoldPoint
impl ManifoldPoint
Sourcepub const fn from_raw(raw: b3ManifoldPoint) -> Self
pub const fn from_raw(raw: b3ManifoldPoint) -> Self
Converts a raw Box3D manifold point into the Rust value type.
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 (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 ManifoldPoint
Source§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
Source§fn eq(&self, other: &ManifoldPoint) -> bool
fn eq(&self, other: &ManifoldPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.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