Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2JointConstraint Class Reference

#include <d2Constraint.h>

Inheritance diagram for d2JointConstraint:
d2Constraint

Public Member Functions

 d2JointConstraint ()
 
 d2JointConstraint (d2Body *a, d2Body *b, const d2Vec2 &anchorPoint)
 
void PreSolve (const real dt) override
 
void Solve () override
 
void PostSolve () override
 
- Public Member Functions inherited from d2Constraint
virtual ~d2Constraint ()=default
 
d2MatMN GetInvM () const
 
d2VecN GetVelocities () const
 
void SetNext (d2Constraint *next)
 
void SetPrev (d2Constraint *prev)
 
d2ConstraintGetNext ()
 
const d2ConstraintGetNext () const
 
d2ConstraintGetPrev ()
 
const d2ConstraintGetPrev () const
 

Additional Inherited Members

- Public Attributes inherited from d2Constraint
d2Bodya
 
d2Bodyb
 
d2Vec2 aPoint
 
d2Vec2 bPoint
 
d2Constraintnext
 
d2Constraintprev
 

Constructor & Destructor Documentation

◆ d2JointConstraint() [1/2]

d2JointConstraint::d2JointConstraint ( )

◆ d2JointConstraint() [2/2]

d2JointConstraint::d2JointConstraint ( d2Body * a,
d2Body * b,
const d2Vec2 & anchorPoint )

Member Function Documentation

◆ PostSolve()

void d2JointConstraint::PostSolve ( )
overridevirtual

Reimplemented from d2Constraint.

◆ PreSolve()

void d2JointConstraint::PreSolve ( const real dt)
overridevirtual

Reimplemented from d2Constraint.

◆ Solve()

void d2JointConstraint::Solve ( )
overridevirtual

Reimplemented from d2Constraint.


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