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

#include <d2Constraint.h>

Inheritance diagram for d2Constraint:
d2JointConstraint d2PenetrationConstraint

Public Member Functions

virtual ~d2Constraint ()=default
 
d2MatMN GetInvM () const
 
d2VecN GetVelocities () const
 
virtual void PreSolve (const real dt)
 
virtual void Solve ()
 
virtual void PostSolve ()
 
void SetNext (d2Constraint *next)
 
void SetPrev (d2Constraint *prev)
 
d2ConstraintGetNext ()
 
const d2ConstraintGetNext () const
 
d2ConstraintGetPrev ()
 
const d2ConstraintGetPrev () const
 

Public Attributes

d2Bodya
 
d2Bodyb
 
d2Vec2 aPoint
 
d2Vec2 bPoint
 
d2Constraintnext
 
d2Constraintprev
 

Constructor & Destructor Documentation

◆ ~d2Constraint()

virtual d2Constraint::~d2Constraint ( )
virtualdefault

Member Function Documentation

◆ GetInvM()

d2MatMN d2Constraint::GetInvM ( ) const

◆ GetNext() [1/2]

d2Constraint * d2Constraint::GetNext ( )
inline

◆ GetNext() [2/2]

const d2Constraint * d2Constraint::GetNext ( ) const
inline

◆ GetPrev() [1/2]

d2Constraint * d2Constraint::GetPrev ( )
inline

◆ GetPrev() [2/2]

const d2Constraint * d2Constraint::GetPrev ( ) const
inline

◆ GetVelocities()

d2VecN d2Constraint::GetVelocities ( ) const

◆ PostSolve()

virtual void d2Constraint::PostSolve ( )
inlinevirtual

◆ PreSolve()

virtual void d2Constraint::PreSolve ( const real dt)
inlinevirtual

◆ SetNext()

void d2Constraint::SetNext ( d2Constraint * next)
inline

◆ SetPrev()

void d2Constraint::SetPrev ( d2Constraint * prev)
inline

◆ Solve()

virtual void d2Constraint::Solve ( )
inlinevirtual

Member Data Documentation

◆ a

d2Body* d2Constraint::a

◆ aPoint

d2Vec2 d2Constraint::aPoint

◆ b

d2Body* d2Constraint::b

◆ bPoint

d2Vec2 d2Constraint::bPoint

◆ next

d2Constraint* d2Constraint::next

◆ prev

d2Constraint* d2Constraint::prev

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