pub struct ContactConstraintPoint {
pub anchor_a: Vec2,
pub anchor_b: Vec2,
pub base_separation: f32,
pub relative_velocity: f32,
pub normal_impulse: f32,
pub tangent_impulse: f32,
pub total_normal_impulse: f32,
pub normal_mass: f32,
pub tangent_mass: f32,
}Expand description
(b2ContactConstraintPoint)
Fields§
§anchor_a: Vec2§anchor_b: Vec2§base_separation: f32§relative_velocity: f32§normal_impulse: f32§tangent_impulse: f32§total_normal_impulse: f32§normal_mass: f32§tangent_mass: f32Trait Implementations§
Source§impl Clone for ContactConstraintPoint
impl Clone for ContactConstraintPoint
Source§fn clone(&self) -> ContactConstraintPoint
fn clone(&self) -> ContactConstraintPoint
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 ContactConstraintPoint
Source§impl Debug for ContactConstraintPoint
impl Debug for ContactConstraintPoint
Source§impl Default for ContactConstraintPoint
impl Default for ContactConstraintPoint
Source§fn default() -> ContactConstraintPoint
fn default() -> ContactConstraintPoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContactConstraintPoint
impl PartialEq for ContactConstraintPoint
impl StructuralPartialEq for ContactConstraintPoint
Auto Trait Implementations§
impl Freeze for ContactConstraintPoint
impl RefUnwindSafe for ContactConstraintPoint
impl Send for ContactConstraintPoint
impl Sync for ContactConstraintPoint
impl Unpin for ContactConstraintPoint
impl UnsafeUnpin for ContactConstraintPoint
impl UnwindSafe for ContactConstraintPoint
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