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

#include <d2Constraint.h>

Inheritance diagram for d2PenetrationConstraint:
d2Constraint

Public Member Functions

 d2PenetrationConstraint ()
 
 d2PenetrationConstraint (d2Body *a, d2Body *b, const d2Vec2 &aCollisionPoint, const d2Vec2 &bCollisionPoint, const d2Vec2 &normal)
 
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

◆ d2PenetrationConstraint() [1/2]

d2PenetrationConstraint::d2PenetrationConstraint ( )

◆ d2PenetrationConstraint() [2/2]

d2PenetrationConstraint::d2PenetrationConstraint ( d2Body * a,
d2Body * b,
const d2Vec2 & aCollisionPoint,
const d2Vec2 & bCollisionPoint,
const d2Vec2 & normal )

Member Function Documentation

◆ PostSolve()

void d2PenetrationConstraint::PostSolve ( )
overridevirtual

Reimplemented from d2Constraint.

◆ PreSolve()

void d2PenetrationConstraint::PreSolve ( const real dt)
overridevirtual

Reimplemented from d2Constraint.

◆ Solve()

void d2PenetrationConstraint::Solve ( )
overridevirtual

Reimplemented from d2Constraint.


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