Data Structures | |
| struct | dContactGeom |
| Describe the contact point between two geoms. More... | |
Functions | |
| ODE_API void | dGeomDestroy (dGeomID geom) |
| Destroy a geom, removing it from any space. | |
| ODE_API void | dGeomSetData (dGeomID geom, void *data) |
| Set the user-defined data pointer stored in the geom. | |
| ODE_API void * | dGeomGetData (dGeomID geom) |
| Get the user-defined data pointer stored in the geom. | |
| ODE_API void | dGeomSetBody (dGeomID geom, dBodyID body) |
| Set the body associated with a placeable geom. | |
| ODE_API dBodyID | dGeomGetBody (dGeomID geom) |
| Get the body associated with a placeable geom. | |
| ODE_API void | dGeomSetPosition (dGeomID geom, dReal x, dReal y, dReal z) |
| Set the position vector of a placeable geom. | |
| ODE_API void | dGeomSetRotation (dGeomID geom, const dMatrix3 R) |
| Set the rotation matrix of a placeable geom. | |
| ODE_API void | dGeomSetQuaternion (dGeomID geom, const dQuaternion Q) |
| Set the rotation of a placeable geom. | |
| ODE_API const dReal * | dGeomGetPosition (dGeomID geom) |
| Get the position vector of a placeable geom. | |
| ODE_API const dReal * | dGeomGetRotation (dGeomID geom) |
| Get the rotation matrix of a placeable geom. | |
| ODE_API void | dGeomGetQuaternion (dGeomID geom, dQuaternion result) |
| Get the rotation quaternion of a placeable geom. | |
| ODE_API void | dGeomGetAABB (dGeomID geom, dReal aabb[6]) |
| Return the axis-aligned bounding box. | |
| ODE_API int | dGeomIsSpace (dGeomID geom) |
| Determing if a geom is a space. | |
| ODE_API dSpaceID | dGeomGetSpace (dGeomID) |
| Query for the space containing a particular geom. | |
| ODE_API int | dGeomGetClass (dGeomID geom) |
| Given a geom, this returns its class. | |
| ODE_API void | dGeomSetCategoryBits (dGeomID geom, unsigned long bits) |
| Set the "category" bitfield for the given geom. | |
| ODE_API void | dGeomSetCollideBits (dGeomID geom, unsigned long bits) |
| Set the "collide" bitfield for the given geom. | |
| ODE_API unsigned long | dGeomGetCategoryBits (dGeomID) |
| Get the "category" bitfield for the given geom. | |
| ODE_API unsigned long | dGeomGetCollideBits (dGeomID) |
| Get the "collide" bitfield for the given geom. | |
| ODE_API void | dGeomEnable (dGeomID geom) |
| Enable a geom. | |
| ODE_API void | dGeomDisable (dGeomID geom) |
| Disable a geom. | |
| ODE_API int | dGeomIsEnabled (dGeomID geom) |
| Check to see if a geom is enabled. | |
Using ODE's collision detection is optional - an alternative collision detection system can be used as long as it can supply the right kinds of contact information.
|
|
Destroy a geom, removing it from any space. Destroy a geom, removing it from any space it is in first. This one function destroys a geom of any type, but to create a geom you must call a creation function for that type. When a space is destroyed, if its cleanup mode is 1 (the default) then all the geoms in that space are automatically destroyed as well.
|
|
|
Disable a geom. Disabled geoms are completely ignored by dSpaceCollide and dSpaceCollide2, although they can still be members of a space. New geoms are created in the enabled state.
|
|
|
Enable a geom. Disabled geoms are completely ignored by dSpaceCollide and dSpaceCollide2, although they can still be members of a space. New geoms are created in the enabled state.
|
|
||||||||||||
|
Return the axis-aligned bounding box. Return in aabb an axis aligned bounding box that surrounds the given geom. The aabb array has elements (minx, maxx, miny, maxy, minz, maxz). If the geom is a space, a bounding box that surrounds all contained geoms is returned. This function may return a pre-computed cached bounding box, if it can determine that the geom has not moved since the last time the bounding box was computed.
|
|
|
Get the body associated with a placeable geom.
|
|
|
Get the "category" bitfield for the given geom.
|
|
|
Given a geom, this returns its class. The ODE classes are:
|
|
|
Get the "collide" bitfield for the given geom.
|
|
|
Get the user-defined data pointer stored in the geom.
|
|
|
Get the position vector of a placeable geom. If the geom is attached to a body, the body's position will be returned. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.
|
|
||||||||||||
|
Get the rotation quaternion of a placeable geom. If the geom is attached to a body, the body's quaternion will be returned. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.
|
|
|
Get the rotation matrix of a placeable geom. If the geom is attached to a body, the body's rotation will be returned. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.
|
|
|
Query for the space containing a particular geom.
|
|
|
Check to see if a geom is enabled. Disabled geoms are completely ignored by dSpaceCollide and dSpaceCollide2, although they can still be members of a space. New geoms are created in the enabled state.
|
|
|
Determing if a geom is a space.
|
|
||||||||||||
|
Set the body associated with a placeable geom. Setting a body on a geom automatically combines the position vector and rotation matrix of the body and geom, so that setting the position or orientation of one will set the value for both objects. Setting a body ID of zero gives the geom its own position and rotation, independent from any body. If the geom was previously connected to a body then its new independent position/rotation is set to the current position/rotation of the body. Calling these functions on a non-placeable geom results in a runtime error in the debug build of ODE.
|
|
||||||||||||
|
Set the "category" bitfield for the given geom. The category bitfield is used by spaces to govern which geoms will interact with each other. The bitfield is guaranteed to be at least 32 bits wide. The default category values for newly created geoms have all bits set.
|
|
||||||||||||
|
Set the "collide" bitfield for the given geom. The collide bitfield is used by spaces to govern which geoms will interact with each other. The bitfield is guaranteed to be at least 32 bits wide. The default category values for newly created geoms have all bits set.
|
|
||||||||||||
|
Set the user-defined data pointer stored in the geom.
|
|
||||||||||||||||||||
|
Set the position vector of a placeable geom. If the geom is attached to a body, the body's position will also be changed. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.
|
|
||||||||||||
|
Set the rotation of a placeable geom. If the geom is attached to a body, the body's rotation will also be changed. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.
|
|
||||||||||||
|
Set the rotation matrix of a placeable geom. If the geom is attached to a body, the body's rotation will also be changed. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.
|
1.4.6