RigidBody Class Reference
#include <RigidBody.h>
Collaboration diagram for RigidBody:

Public Member Functions | |
| RigidBody () | |
| virtual | ~RigidBody () |
| virtual gmtl::Vec3f | getPos () |
| virtual void | setOrientation (gmtl::Quatf orientation) |
| virtual void | setRight (gmtl::Vec3f right) |
| virtual void | setForward (gmtl::Vec3f forward) |
| virtual void | setUp (gmtl::Vec3f up) |
| virtual void | setVel (gmtl::Vec3f vel) |
| virtual void | setAngularVel (gmtl::Vec3f angVel) |
| virtual void | setPos (gmtl::Vec3f pos) |
| virtual void | setMass (float mass) |
| virtual void | setShape (CollisionObject *shape) |
| virtual void | setConstantForce (gmtl::Vec3f force) |
| virtual void | setConstantTorque (gmtl::Vec3f torque) |
| virtual void | setBoundingCircleRadius (float radius) |
| virtual void | setMovable (bool movable) |
| virtual void | setEntity (Entity *entity) |
| virtual void | addForce (gmtl::Vec3f force) |
| virtual void | addTorque (gmtl::Vec3f torque) |
| virtual gmtl::Quatf | getOrientation () |
| virtual gmtl::Vec3f | getRight () |
| virtual gmtl::Vec3f | getForward () |
| virtual gmtl::Vec3f | getUp () |
| virtual gmtl::Vec3f | getVel () |
| virtual gmtl::Vec3f | getCollisionV (gmtl::Vec3f collDir) |
| virtual gmtl::Vec3f | getAngularVel () |
| virtual float | getMassInv () |
| virtual gmtl::Vec2f | get2DPos () |
| virtual float | getBoundingCircleRadius () |
| virtual CollisionObject * | getShape () |
| virtual bool | isFixed () |
| virtual Entity * | getEntity () |
| virtual TransformationData | getTransformation () |
| virtual void | adjustOrientation () |
| virtual void | getModelToWorldMatrix (gmtl::Matrix44f *m) |
| virtual void | update (float dt) |
Protected Member Functions | |
| virtual void | collisionCallback (CollisionCallbackData *collision) |
Protected Attributes | |
| gmtl::Vec3f | x |
| gmtl::Vec3f | v |
| gmtl::Vec3f | angV |
| gmtl::Vec3f | constantForce |
| gmtl::Vec3f | force |
| gmtl::Vec3f | constantTorque |
| gmtl::Vec3f | torque |
| float | massInv |
| gmtl::Quatf | orientation |
| gmtl::Vec3f | right |
| gmtl::Vec3f | forward |
| gmtl::Vec3f | up |
| float | boundingCircleRadius |
| CollisionObject * | shape |
| bool | movable |
| Entity * | entity |
| bool | notifyAtCollision |
Static Protected Attributes | |
| static const gmtl::Vec3f | UP = gmtl::Vec3f(0, 1, 0) |
| static const gmtl::Vec3f | FORWARD = gmtl::Vec3f(0, 0, 1) |
| static const gmtl::Vec3f | RIGHT = gmtl::Vec3f(1, 0, 0) |
Friends | |
| class | Simulation2D |
Constructor & Destructor Documentation
| RigidBody::RigidBody | ( | ) |
| RigidBody::~RigidBody | ( | ) | [virtual] |
Member Function Documentation
| void RigidBody::addForce | ( | gmtl::Vec3f | force | ) | [virtual] |
| void RigidBody::addTorque | ( | gmtl::Vec3f | torque | ) | [virtual] |
| void RigidBody::adjustOrientation | ( | ) | [virtual] |
| virtual void RigidBody::collisionCallback | ( | CollisionCallbackData * | collision | ) | [inline, protected, virtual] |
| gmtl::Vec2f RigidBody::get2DPos | ( | ) | [virtual] |
| gmtl::Vec3f RigidBody::getAngularVel | ( | ) | [virtual] |
| float RigidBody::getBoundingCircleRadius | ( | ) | [virtual] |
| gmtl::Vec3f RigidBody::getCollisionV | ( | gmtl::Vec3f | collDir | ) | [virtual] |
| Entity * RigidBody::getEntity | ( | ) | [virtual] |
| gmtl::Vec3f RigidBody::getForward | ( | ) | [virtual] |
| float RigidBody::getMassInv | ( | ) | [virtual] |
| void RigidBody::getModelToWorldMatrix | ( | gmtl::Matrix44f * | m | ) | [virtual] |
| gmtl::Quatf RigidBody::getOrientation | ( | ) | [virtual] |
| gmtl::Vec3f RigidBody::getPos | ( | ) | [virtual] |
| gmtl::Vec3f RigidBody::getRight | ( | ) | [virtual] |
| CollisionObject * RigidBody::getShape | ( | ) | [virtual] |
| TransformationData RigidBody::getTransformation | ( | ) | [virtual] |
| gmtl::Vec3f RigidBody::getUp | ( | ) | [virtual] |
| gmtl::Vec3f RigidBody::getVel | ( | ) | [virtual] |
| bool RigidBody::isFixed | ( | ) | [virtual] |
| void RigidBody::setAngularVel | ( | gmtl::Vec3f | angVel | ) | [virtual] |
| void RigidBody::setBoundingCircleRadius | ( | float | radius | ) | [virtual] |
| void RigidBody::setConstantForce | ( | gmtl::Vec3f | force | ) | [virtual] |
| void RigidBody::setConstantTorque | ( | gmtl::Vec3f | torque | ) | [virtual] |
| void RigidBody::setEntity | ( | Entity * | entity | ) | [virtual] |
| void RigidBody::setForward | ( | gmtl::Vec3f | forward | ) | [virtual] |
| void RigidBody::setMass | ( | float | mass | ) | [virtual] |
| void RigidBody::setMovable | ( | bool | movable | ) | [virtual] |
| void RigidBody::setOrientation | ( | gmtl::Quatf | orientation | ) | [virtual] |
| void RigidBody::setPos | ( | gmtl::Vec3f | pos | ) | [virtual] |
| void RigidBody::setRight | ( | gmtl::Vec3f | right | ) | [virtual] |
| void RigidBody::setShape | ( | CollisionObject * | shape | ) | [virtual] |
| void RigidBody::setUp | ( | gmtl::Vec3f | up | ) | [virtual] |
| void RigidBody::setVel | ( | gmtl::Vec3f | vel | ) | [virtual] |
| virtual void RigidBody::update | ( | float | dt | ) | [inline, virtual] |
Friends And Related Function Documentation
friend class Simulation2D [friend] |
Member Data Documentation
gmtl::Vec3f RigidBody::angV [protected] |
float RigidBody::boundingCircleRadius [protected] |
gmtl::Vec3f RigidBody::constantForce [protected] |
gmtl::Vec3f RigidBody::constantTorque [protected] |
Entity* RigidBody::entity [protected] |
gmtl::Vec3f RigidBody::force [protected] |
gmtl::Vec3f RigidBody::forward [protected] |
const gmtl::Vec3f RigidBody::FORWARD = gmtl::Vec3f(0, 0, 1) [static, protected] |
float RigidBody::massInv [protected] |
bool RigidBody::movable [protected] |
bool RigidBody::notifyAtCollision [protected] |
gmtl::Quatf RigidBody::orientation [protected] |
gmtl::Vec3f RigidBody::right [protected] |
const gmtl::Vec3f RigidBody::RIGHT = gmtl::Vec3f(1, 0, 0) [static, protected] |
CollisionObject* RigidBody::shape [protected] |
gmtl::Vec3f RigidBody::torque [protected] |
gmtl::Vec3f RigidBody::up [protected] |
const gmtl::Vec3f RigidBody::UP = gmtl::Vec3f(0, 1, 0) [static, protected] |
gmtl::Vec3f RigidBody::v [protected] |
gmtl::Vec3f RigidBody::x [protected] |
The documentation for this class was generated from the following files:
- src/inVRs/Modules/2DPhysics/RigidBody.h
- src/inVRs/Modules/2DPhysics/RigidBody.cpp
Generated on Wed Oct 20 16:12:00 2010 for inVRs by
1.5.8