Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Types | Public Member Functions | Public Attributes | List of all members
box2d::PositionConstraint Struct Reference

Contact Position Constraint. More...

#include <PositionConstraint.hpp>

Public Types

using size_type = std::remove_const< decltype(MaxManifoldPoints)>::type
 

Public Member Functions

 PositionConstraint ()=default
 
 PositionConstraint (const Manifold &m, BodyConstraint &bA, Length rA, BodyConstraint &bB, Length rB)
 

Public Attributes

Manifold manifold
 Copy of contact's manifold with 1 or more contact points (60-bytes). More...
 
BodyConstraintbodyA
 Body A data (8-bytes). More...
 
BodyConstraintbodyB
 Body B data (8-bytes). More...
 
Length radiusA
 "Radius" distance from the associated shape of fixture A (4-bytes). 0 or greater. More...
 
Length radiusB
 "Radius" distance from the associated shape of fixture B (4-bytes). 0 or greater. More...
 

Detailed Description

Contact Position Constraint.

Note
This structure is 88-bytes large on at least one 64-bit platform.

Member Typedef Documentation

◆ size_type

using box2d::PositionConstraint::size_type = std::remove_const<decltype(MaxManifoldPoints)>::type

Constructor & Destructor Documentation

◆ PositionConstraint() [1/2]

box2d::PositionConstraint::PositionConstraint ( )
default

◆ PositionConstraint() [2/2]

box2d::PositionConstraint::PositionConstraint ( const Manifold m,
BodyConstraint bA,
Length  rA,
BodyConstraint bB,
Length  rB 
)
inline

Member Data Documentation

◆ bodyA

BodyConstraint& box2d::PositionConstraint::bodyA

Body A data (8-bytes).

◆ bodyB

BodyConstraint& box2d::PositionConstraint::bodyB

Body B data (8-bytes).

◆ manifold

Manifold box2d::PositionConstraint::manifold

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

◆ radiusA

Length box2d::PositionConstraint::radiusA

"Radius" distance from the associated shape of fixture A (4-bytes). 0 or greater.

◆ radiusB

Length box2d::PositionConstraint::radiusB

"Radius" distance from the associated shape of fixture B (4-bytes). 0 or greater.


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