PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::VelocityConstraint::Point Struct Reference

Velocity constraint point. More...

#include <playrho/d2/VelocityConstraint.hpp>

Collaboration diagram for playrho::d2::VelocityConstraint::Point:
[legend]

Public Attributes

Momentum normalImpulse = 0_Ns
 Normal impulse.
 
Mass normalMass = 0_kg
 
Length2 relA = Length2{}
 Position of body A relative to world manifold point.
 
Length2 relB = Length2{}
 Position of body B relative to world manifold point.
 
Momentum tangentImpulse = 0_Ns
 Tangent impulse.
 
Mass tangentMass = 0_kg
 
LinearVelocity velocityBias = 0_mps
 

Detailed Description

Velocity constraint point.

Note
Default initialized to values that make this point ineffective if it got processed counter to being a valid point per the point count property. This allows both points to be unconditionally processed which may be faster if it'd otherwise cause branch misprediction and depending on the cost of branch misprediction.

Member Data Documentation

◆ normalMass

Mass playrho::d2::VelocityConstraint::Point::normalMass = 0_kg

Normal mass.

Note
0 or greater.
Dependent on relA and relB.

◆ tangentMass

Mass playrho::d2::VelocityConstraint::Point::tangentMass = 0_kg

Tangent mass.

Note
0 or greater.
Dependent on relA and relB.

◆ velocityBias

LinearVelocity playrho::d2::VelocityConstraint::Point::velocityBias = 0_mps

Velocity bias.

Note
A product of the contact restitution.

The documentation for this struct was generated from the following file: