![]() |
VR-Forces Developer's Guide
|
replaces the PPlane object /ingroup vrvFx

Public Types | |
| enum | ObjectType { Plane, Sphere, Ellipsoid } |
Public Member Functions | |
| DtFxCollisionObject () | |
| virtual | ~DtFxCollisionObject () |
| virtual void | setPosition (double x, double y, double z) |
| virtual void | setRadius (float radius) |
| virtual void | setRadius (float radius_x, float radius_y, float radius_z) |
| virtual void | setRotation (float angle, float x, float y, float z) |
| virtual void | collide (const bdiFarPosition &system_pos, const bdiVec3f &planeNormal, float quantum, DtFxParticle *pParticle) const |
| virtual void | render_into_vbo (const bdiFarPosition &eyePoint, const bdiMat4f &geocentricMat, bdiVec3fArray &verts, bdiVec4fArray &colors) const |
| const bdiMat4f & | geocentricMatrix () const |
| bool | globalObject () const |
| void | setGlobalObject (bool global) |
| void | setObjectType (int val) |
| int | objectType () const |
| virtual void | read_cfg_line (bdiCfgEntryLine *cfg_entry_line) |
| virtual bdiCfgEntryLine * | create_cfg_line () |
| virtual bdiCfgEntry * | create_cfg_entry () |
| virtual void | read_cfg_entry (bdiCfgEntry *entry) |
| const bdiFarPosition & | point () const |
| float | radius () const |
| const bdiVec3f & | normal () const |
Public Member Functions inherited from makVrv::DtFxCollisionVolumeInterface | |
| virtual | ~DtFxCollisionVolumeInterface () |
Protected Attributes | |
| bool | m_global_object |
| int | m_object_type |
| bdiVec3f | m_normal |
| bdiFarPosition | m_point |
| float | m_radius |
| bdiVec3f | m_ellipsoid_radius |
| bdiVec4f | m_quat |
| float | m_bounce_factor |
| int | m_collision_behavior |
| bdiMat4f | myGeocentricMatrix |
| bdiMat4f | myQuatMatrix |
| bdiMat4f | myQuatMatrixInv |
Friends | |
| class | bdiQPropTreeItemCollisionObject |
| makVrv::DtFxCollisionObject::DtFxCollisionObject | ( | ) |
CTOR constructs a force.
|
inlinevirtual |
DTOR destroys a force.
sets the position of the object
Implements makVrv::DtFxCollisionVolumeInterface.
|
virtual |
turns object into sphere
Implements makVrv::DtFxCollisionVolumeInterface.
|
virtual |
turns object into ellipsoid
Implements makVrv::DtFxCollisionVolumeInterface.
|
virtual |
quat representation of rotation
Implements makVrv::DtFxCollisionVolumeInterface.
|
virtual |
collides a particle with an object.
|
virtual |
debug rendering
|
inline |
current geocentric matrix
|
inline |
is this a global collision object (usually true if not a collision plane)
|
inline |
sets this to be a global object
|
inline |
sets the object type
|
inline |
gets the object type
|
virtual |
reads the description from a config entry
|
virtual |
writes the description into line
|
virtual |
|
virtual |
|
inline |
center of object or plane
|
inline |
sphere radius for bounds check
|
inline |
plane normal
|
friend |
allows the UI to edit all the various parameters
|
protected |
|
protected |
|
protected |
The plane's normal.
|
protected |
A coplanar point within the plane, or center of object.
|
protected |
sphere size
|
protected |
ellipsoid size
|
protected |
results of set rotation
|
protected |
Coefficient of restitution (or how bouncy the plane is)
|
protected |
|
protected |
|
protected |
|
protected |