Flatland

Documentation

SourceForge.net Logo

Flatland::World Class Reference

#include <flatland.hpp>

List of all members.


Detailed Description

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


Member Function Documentation

template<class Container>
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:

  • Container::const_iterator
  • Container::begin()
  • Container::end() The objects in the container must have a GetFlatlandObject() method.

Definition at line 198 of file flatland.hpp.

template<class Container>
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:

  • Container::const_iterator
  • Container::begin()
  • Container::end() The objects in the container must have a GetFlatlandObject() method.

Definition at line 251 of file flatland.hpp.


The documentation for this class was generated from the following files:
Generated on Sat Jan 13 17:20:21 2007 for Flatland by doxygen 1.5.1