This class implements an ODE dynamic world.
More...
#include <CODEWorld.h>
|
| static void | nearCallback (void *data, dGeomID o1, dGeomID o2) |
| | This method is an ODE callback that reports collisions. More...
|
| |
cODEWorld implements a virtual world to handle ODE based objects (cODEGenericBody).
Constructor of cODEWorld.
- Parameters
-
| a_parentWorld | Pointer to parent CHAI3D world. |
| cODEWorld::~cODEWorld |
( |
| ) |
|
|
virtual |
This methods defines a gravity field passed as argument.
- Parameters
-
| a_gravity | Gravity field vector. |
This methods returns the current gravity field vector.
- Returns
- Current gravity field vector.
| void cODEWorld::setLinearDamping |
( |
double |
a_value | ) |
|
|
inline |
| void cODEWorld::setAngularDamping |
( |
double |
a_value | ) |
|
|
inline |
| void cODEWorld::setMaxAngularSpeed |
( |
double |
a_value | ) |
|
|
inline |
| void cODEWorld::updateDynamics |
( |
double |
a_interval | ) |
|
This methods updates the simulation over a time interval passed as argument
- Parameters
-
| a_interval | Time increment. |
| void cODEWorld::updateBodyPositions |
( |
void |
| ) |
|
This methods updates the position and orientation from ODE models to CHAI3D models.
| void cODEWorld::updateGlobalPositions |
( |
const bool |
a_frameOnly | ) |
|
This methods computes globalPos and globalRot given the localPos and localRot of this object and its parents.
If a_frameOnly is set to false, additional global positions such as vertex positions are computed (which can be time-consuming).
- Parameters
-
| a_frameOnly | If true then only the global frame is computed. |
This method checks if the given line segment intersects any object located inside the virtual world.
- Parameters
-
| a_segmentPointA | Initial point of segment. |
| a_segmentPointB | End point of segment. |
| a_recorder | Recorder which stores all collision events. |
| a_settings | Structure which contains some rules about how the collision detection should be performed. |
- Returns
- true if a collision occurred, false otherwise.
| void cODEWorld::nearCallback |
( |
void * |
a_data, |
|
|
dGeomID |
a_object1, |
|
|
dGeomID |
a_object2 |
|
) |
| |
|
staticprotected |
This methods is an ODE callback for handling collision detection.
- Parameters
-
| a_data | Not used here. |
| a_object1 | Reference to ODE object 1. |
| a_object2 | Reference to ODE object 2. |
This methods renders the world graphically using OpenGL.
- Parameters
-
| a_options | Rendering options. |
| dWorldID cODEWorld::m_ode_world |
| dSpaceID cODEWorld::m_ode_space |
| dJointGroupID cODEWorld::m_ode_contactgroup |
| double cODEWorld::m_simulationTime |
|
protected |
The documentation for this class was generated from the following files: