pub struct ContactConstraint {Show 14 fields
pub constraints: Vec<ManifoldConstraint>,
pub contact_id: i32,
pub index_a: i32,
pub index_b: i32,
pub inv_mass_a: f32,
pub inv_mass_b: f32,
pub inv_i_a: Matrix3,
pub inv_i_b: Matrix3,
pub softness: Softness,
pub rolling_mass: Matrix3,
pub friction: f32,
pub restitution: f32,
pub rolling_resistance: f32,
pub manifold_count: i32,
}Expand description
(b3ContactConstraint)
C holds b3ManifoldConstraint* constraints and b3Contact* contact. The
Rust data model stores the manifold constraints inline and the contact id;
the solver wires slices at step time.
Fields§
§constraints: Vec<ManifoldConstraint>§contact_id: i32§index_a: i32§index_b: i32§inv_mass_a: f32§inv_mass_b: f32§inv_i_a: Matrix3§inv_i_b: Matrix3§softness: Softness§rolling_mass: Matrix3§friction: f32§restitution: f32§rolling_resistance: f32§manifold_count: i32Trait Implementations§
Source§impl Clone for ContactConstraint
impl Clone for ContactConstraint
Source§fn clone(&self) -> ContactConstraint
fn clone(&self) -> ContactConstraint
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 moreSource§impl Debug for ContactConstraint
impl Debug for ContactConstraint
Source§impl Default for ContactConstraint
impl Default for ContactConstraint
Source§impl PartialEq for ContactConstraint
impl PartialEq for ContactConstraint
impl StructuralPartialEq for ContactConstraint
Auto Trait Implementations§
impl Freeze for ContactConstraint
impl RefUnwindSafe for ContactConstraint
impl Send for ContactConstraint
impl Sync for ContactConstraint
impl Unpin for ContactConstraint
impl UnsafeUnpin for ContactConstraint
impl UnwindSafe for ContactConstraint
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