PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::VelocityConstraint::Point Struct Reference

Velocity constraint point. More...

#include <VelocityConstraint.hpp>

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

Public Attributes

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 normalImpulse = 0_Ns
 Normal impulse.
 
Momentum tangentImpulse = 0_Ns
 Tangent impulse.
 
Mass normalMass = 0_kg
 Normal mass. More...
 
Mass tangentMass = 0_kg
 Tangent mass. More...
 
LinearVelocity velocityBias = 0_mps
 Velocity bias. More...
 

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.
This structure is at least 36-bytes large.

Member Data Documentation

◆ normalMass

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

Normal mass.

Note
0 or greater.
Dependent on relA and relB.

Referenced by playrho::d2::VelocityConstraint::GetPoint().

◆ tangentMass

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

Tangent mass.

Note
0 or greater.
Dependent on relA and relB.

Referenced by playrho::d2::VelocityConstraint::GetPoint().

◆ velocityBias

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

Velocity bias.

Note
A product of the contact restitution.

Referenced by playrho::d2::VelocityConstraint::GetPoint().


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