playrho::d2::VelocityConstraint::Point Struct Reference

Velocity constraint point. More...

#include <VelocityConstraint.hpp>

Public Attributes

Length2 relA = Length2{}
 Position of body A relative to world manifold point. More...
 
Length2 relB = Length2{}
 Position of body B relative to world manifold point. More...
 
Momentum normalImpulse = 0_Ns
 Normal impulse. More...
 
Momentum tangentImpulse = 0_Ns
 Tangent impulse. More...
 
Mass normalMass = 0_kg
 
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.
This structure is at least 36-bytes large.

Definition at line 187 of file VelocityConstraint.hpp.

Member Data Documentation

◆ relA

Length2 playrho::d2::VelocityConstraint::Point::relA = Length2{}

Position of body A relative to world manifold point.

Definition at line 190 of file VelocityConstraint.hpp.

◆ relB

Length2 playrho::d2::VelocityConstraint::Point::relB = Length2{}

Position of body B relative to world manifold point.

Definition at line 193 of file VelocityConstraint.hpp.

◆ normalImpulse

Momentum playrho::d2::VelocityConstraint::Point::normalImpulse = 0_Ns

Normal impulse.

Definition at line 196 of file VelocityConstraint.hpp.

◆ tangentImpulse

Momentum playrho::d2::VelocityConstraint::Point::tangentImpulse = 0_Ns

Tangent impulse.

Definition at line 199 of file VelocityConstraint.hpp.

◆ normalMass

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

Normal mass.

Note
0 or greater.
Dependent on relA and relB.

Definition at line 204 of file VelocityConstraint.hpp.

◆ tangentMass

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

Tangent mass.

Note
0 or greater.
Dependent on relA and relB.

Definition at line 209 of file VelocityConstraint.hpp.

◆ velocityBias

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

Velocity bias.

Note
A product of the contact restitution.

Definition at line 213 of file VelocityConstraint.hpp.


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