Public Member Functions | Public Attributes | List of all members
b2ContactSolver Class Reference

#include <b2_contact_solver.h>

Public Member Functions

 b2ContactSolver (b2ContactSolverDef *def)
 
void InitializeVelocityConstraints ()
 
bool SolvePositionConstraints ()
 
bool SolveTOIPositionConstraints (int32 toiIndexA, int32 toiIndexB)
 
void SolveVelocityConstraints ()
 
void StoreImpulses ()
 
void WarmStart ()
 
 ~b2ContactSolver ()
 

Public Attributes

b2StackAllocatorm_allocator
 
b2Contact ** m_contacts
 
int m_count
 
b2ContactPositionConstraintm_positionConstraints
 
b2Positionm_positions
 
b2TimeStep m_step
 
b2Velocitym_velocities
 
b2ContactVelocityConstraintm_velocityConstraints
 

Detailed Description

Definition at line 74 of file b2_contact_solver.h.

Constructor & Destructor Documentation

◆ b2ContactSolver()

b2ContactSolver::b2ContactSolver ( b2ContactSolverDef def)

Definition at line 51 of file b2_contact_solver.cpp.

◆ ~b2ContactSolver()

b2ContactSolver::~b2ContactSolver ( )

Definition at line 139 of file b2_contact_solver.cpp.

Member Function Documentation

◆ InitializeVelocityConstraints()

void b2ContactSolver::InitializeVelocityConstraints ( )

Definition at line 146 of file b2_contact_solver.cpp.

◆ SolvePositionConstraints()

bool b2ContactSolver::SolvePositionConstraints ( )

Definition at line 676 of file b2_contact_solver.cpp.

◆ SolveTOIPositionConstraints()

bool b2ContactSolver::SolveTOIPositionConstraints ( int32  toiIndexA,
int32  toiIndexB 
)

Definition at line 755 of file b2_contact_solver.cpp.

◆ SolveVelocityConstraints()

void b2ContactSolver::SolveVelocityConstraints ( )

Definition at line 297 of file b2_contact_solver.cpp.

◆ StoreImpulses()

void b2ContactSolver::StoreImpulses ( )

Definition at line 609 of file b2_contact_solver.cpp.

◆ WarmStart()

void b2ContactSolver::WarmStart ( )

Definition at line 257 of file b2_contact_solver.cpp.

Member Data Documentation

◆ m_allocator

b2StackAllocator* b2ContactSolver::m_allocator

Definition at line 92 of file b2_contact_solver.h.

◆ m_contacts

b2Contact** b2ContactSolver::m_contacts

Definition at line 95 of file b2_contact_solver.h.

◆ m_count

int b2ContactSolver::m_count

Definition at line 96 of file b2_contact_solver.h.

◆ m_positionConstraints

b2ContactPositionConstraint* b2ContactSolver::m_positionConstraints

Definition at line 93 of file b2_contact_solver.h.

◆ m_positions

b2Position* b2ContactSolver::m_positions

Definition at line 90 of file b2_contact_solver.h.

◆ m_step

b2TimeStep b2ContactSolver::m_step

Definition at line 89 of file b2_contact_solver.h.

◆ m_velocities

b2Velocity* b2ContactSolver::m_velocities

Definition at line 91 of file b2_contact_solver.h.

◆ m_velocityConstraints

b2ContactVelocityConstraint* b2ContactSolver::m_velocityConstraints

Definition at line 94 of file b2_contact_solver.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22