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

This is an internal class. More...

#include <b2_island.h>

Public Member Functions

void Add (b2Body *body)
 
void Add (b2Contact *contact)
 
void Add (b2Joint *joint)
 
 b2Island (int32 bodyCapacity, int32 contactCapacity, int32 jointCapacity, b2StackAllocator *allocator, b2ContactListener *listener)
 
void Clear ()
 
void Report (const b2ContactVelocityConstraint *constraints)
 
void Solve (b2Profile *profile, const b2TimeStep &step, const b2Vec2 &gravity, bool allowSleep)
 
void SolveTOI (const b2TimeStep &subStep, int32 toiIndexA, int32 toiIndexB)
 
 ~b2Island ()
 

Public Attributes

b2StackAllocatorm_allocator
 
b2Body ** m_bodies
 
int32 m_bodyCapacity
 
int32 m_bodyCount
 
int32 m_contactCapacity
 
int32 m_contactCount
 
b2Contact ** m_contacts
 
int32 m_jointCapacity
 
int32 m_jointCount
 
b2Joint ** m_joints
 
b2ContactListenerm_listener
 
b2Positionm_positions
 
b2Velocitym_velocities
 

Detailed Description

This is an internal class.

Definition at line 38 of file b2_island.h.

Constructor & Destructor Documentation

◆ b2Island()

b2Island::b2Island ( int32  bodyCapacity,
int32  contactCapacity,
int32  jointCapacity,
b2StackAllocator allocator,
b2ContactListener listener 
)

Definition at line 153 of file b2_island.cpp.

◆ ~b2Island()

b2Island::~b2Island ( )

Definition at line 178 of file b2_island.cpp.

Member Function Documentation

◆ Add() [1/3]

void b2Island::Add ( b2Body body)
inline

Definition at line 56 of file b2_island.h.

◆ Add() [2/3]

void b2Island::Add ( b2Contact contact)
inline

Definition at line 64 of file b2_island.h.

◆ Add() [3/3]

void b2Island::Add ( b2Joint joint)
inline

Definition at line 70 of file b2_island.h.

◆ Clear()

void b2Island::Clear ( )
inline

Definition at line 45 of file b2_island.h.

◆ Report()

void b2Island::Report ( const b2ContactVelocityConstraint constraints)

Definition at line 521 of file b2_island.cpp.

◆ Solve()

void b2Island::Solve ( b2Profile profile,
const b2TimeStep step,
const b2Vec2 gravity,
bool  allowSleep 
)

Definition at line 188 of file b2_island.cpp.

◆ SolveTOI()

void b2Island::SolveTOI ( const b2TimeStep subStep,
int32  toiIndexA,
int32  toiIndexB 
)

Definition at line 389 of file b2_island.cpp.

Member Data Documentation

◆ m_allocator

b2StackAllocator* b2Island::m_allocator

Definition at line 78 of file b2_island.h.

◆ m_bodies

b2Body** b2Island::m_bodies

Definition at line 81 of file b2_island.h.

◆ m_bodyCapacity

int32 b2Island::m_bodyCapacity

Definition at line 92 of file b2_island.h.

◆ m_bodyCount

int32 b2Island::m_bodyCount

Definition at line 88 of file b2_island.h.

◆ m_contactCapacity

int32 b2Island::m_contactCapacity

Definition at line 93 of file b2_island.h.

◆ m_contactCount

int32 b2Island::m_contactCount

Definition at line 90 of file b2_island.h.

◆ m_contacts

b2Contact** b2Island::m_contacts

Definition at line 82 of file b2_island.h.

◆ m_jointCapacity

int32 b2Island::m_jointCapacity

Definition at line 94 of file b2_island.h.

◆ m_jointCount

int32 b2Island::m_jointCount

Definition at line 89 of file b2_island.h.

◆ m_joints

b2Joint** b2Island::m_joints

Definition at line 83 of file b2_island.h.

◆ m_listener

b2ContactListener* b2Island::m_listener

Definition at line 79 of file b2_island.h.

◆ m_positions

b2Position* b2Island::m_positions

Definition at line 85 of file b2_island.h.

◆ m_velocities

b2Velocity* b2Island::m_velocities

Definition at line 86 of file b2_island.h.


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


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