PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::PositionConstraint Class Reference

The per-contact position constraint data structure. More...

#include <PositionConstraint.hpp>

Collaboration diagram for playrho::d2::PositionConstraint:
[legend]

Public Member Functions

 PositionConstraint (const Manifold &m, BodyID bA, BodyID bB, Length radius)
 Initializing constructor.
 
BodyID GetBodyA () const noexcept
 Gets body A.
 
BodyID GetBodyB () const noexcept
 Gets body B.
 
Length GetTotalRadius () const noexcept
 Gets total radius - i.e. combined radius of shapes of fixtures A and B.
 

Public Attributes

Manifold manifold
 Copy of contact's manifold with 1 or more contact points (64-bytes).
 

Private Attributes

BodyID m_bodyA
 Identifier for body-A.
 
BodyID m_bodyB
 Identifier for body-B.
 
Length m_totalRadius
 Total "Radius" distance of the associated shapes of fixture A and fixture B. More...
 

Detailed Description

The per-contact position constraint data structure.

Member Data Documentation

◆ m_totalRadius

Length playrho::d2::PositionConstraint::m_totalRadius
private

Total "Radius" distance of the associated shapes of fixture A and fixture B.

Note
0 or greater.

Referenced by GetTotalRadius().


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