74 const d2Vec2 &aCollisionPoint,
75 const d2Vec2 &bCollisionPoint,
A class representing a 2D rigid body.
Definition d2Body.h:28
Definition d2Constraint.h:7
d2Body * a
Definition d2Constraint.h:9
d2Vec2 bPoint
Definition d2Constraint.h:13
d2VecN GetVelocities() const
const d2Constraint * GetNext() const
Definition d2Constraint.h:35
virtual void PreSolve(const real dt)
Definition d2Constraint.h:24
d2Vec2 aPoint
Definition d2Constraint.h:12
void SetPrev(d2Constraint *prev)
Definition d2Constraint.h:32
void SetNext(d2Constraint *next)
Definition d2Constraint.h:30
virtual void PostSolve()
Definition d2Constraint.h:28
d2Body * b
Definition d2Constraint.h:10
virtual void Solve()
Definition d2Constraint.h:26
d2Constraint * GetPrev()
Definition d2Constraint.h:37
const d2Constraint * GetPrev() const
Definition d2Constraint.h:38
d2Constraint * next
Definition d2Constraint.h:15
virtual ~d2Constraint()=default
d2Constraint * prev
Definition d2Constraint.h:16
d2Constraint * GetNext()
Definition d2Constraint.h:34
Definition d2Constraint.h:42
d2JointConstraint(d2Body *a, d2Body *b, const d2Vec2 &anchorPoint)
void PostSolve() override
void PreSolve(const real dt) override
Definition d2Constraint.h:61
d2PenetrationConstraint()
d2PenetrationConstraint(d2Body *a, d2Body *b, const d2Vec2 &aCollisionPoint, const d2Vec2 &bCollisionPoint, const d2Vec2 &normal)
void PostSolve() override
void PreSolve(const real dt) override
float real
Definition d2Types.h:10
Represents an MxN matrix.
Definition d2Math.h:161
Represents a 2D vector.
Definition d2Math.h:22
Represents an N-dimensional vector.
Definition d2Math.h:114