#include <flatland.hpp>
Definition at line 154 of file flatland.hpp.
Public Member Functions | |
World () | |
~World () | |
void | QuickStep (float) |
Body | BodyCreate () |
template<class S> | |
void | GenerateContacts (const S &space) |
Contact generator for 2D geometry. | |
template<class S> | |
bool | IsCorrupt (const S &space) const |
Corruption detection in a scene. | |
int | ContactCount () const |
void | SetCFM (float) |
void | SetAutoDisableFlag (bool) |
void | SetERP (float) |
void | SetContactMaxCorrectingVel (float) |
void | SetContactSurfaceLayer (float) |
void | SetAutoDisableLinearThreshold (float) |
void | SetAutoDisableAngularThreshold (float) |
void | SetGravity (const vec2 &) |
dJointID | AddMotor (Object &object) |
dJointID | Glue (Object &object1, Object &object2) |
dJointID | AnchorAxis (Object &object, const vec2 &axis) |
dJointID | Anchor (Object &o1, Object &o2, const vec2 &point, float mu, float erp) |
dJointID | Anchor (Object &o1, const vec2 &point, float mu, float erp) |
void | DeleteJoint (dJointID joint) |
Static Public Member Functions | |
static void | SetMotorVelocity (dJointID joint, float velocity) |
static float | GetMotorVelocity (dJointID joint) |
Private Attributes | |
int | contactCount |
dWorldID | world |
dJointGroupID | contactGroup |
ContactList | contactList |
void Flatland::World::GenerateContacts | ( | const Container & | space | ) |
GenerateContacts is a template function that takes any object that acts like an STL container of pointers. It generates all appropriate ODE joints for simulating 2D collisions. The given container does not need to be an actual STL container; it only needs to have these properties:
Definition at line 198 of file flatland.hpp.
bool Flatland::World::IsCorrupt | ( | const Container & | space | ) | const |
IsCorrupt is a template function that takes any object that acts like an STL container of pointers. The given container does not need to be an actual STL container; it only needs to have these properties:
Definition at line 251 of file flatland.hpp.