pub struct ContactConstraint {Show 16 fields
pub index_a: i32,
pub index_b: i32,
pub points: [ContactConstraintPoint; 2],
pub normal: Vec2,
pub inv_mass_a: f32,
pub inv_mass_b: f32,
pub inv_i_a: f32,
pub inv_i_b: f32,
pub friction: f32,
pub restitution: f32,
pub tangent_speed: f32,
pub rolling_resistance: f32,
pub rolling_mass: f32,
pub rolling_impulse: f32,
pub softness: Softness,
pub point_count: i32,
}Expand description
(b2ContactConstraint)
Fields§
§index_a: i32base-1, 0 for null
index_b: i32§points: [ContactConstraintPoint; 2]§normal: Vec2§inv_mass_a: f32§inv_mass_b: f32§inv_i_a: f32§inv_i_b: f32§friction: f32§restitution: f32§tangent_speed: f32§rolling_resistance: f32§rolling_mass: f32§rolling_impulse: f32§softness: Softness§point_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 moreimpl Copy for ContactConstraint
Source§impl Debug for ContactConstraint
impl Debug for ContactConstraint
Source§impl Default for ContactConstraint
impl Default for ContactConstraint
Source§fn default() -> ContactConstraint
fn default() -> ContactConstraint
Returns the “default value” for a type. Read more
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