Public Member Functions | Protected Attributes

RigidBody Class Reference

Inheritance diagram for RigidBody:
Ball

List of all members.

Public Member Functions

real calculateEnergy () const
void integrate (real duration)
bool isAwake () const
void setAwake (const bool b)
void resolveCollision (const RigidBody &body)
Vector calculateVelChange (real duration) const
real calculateSquaredDistance (const RigidBody &body) const
Vector calculateNormalVector (const RigidBody &body) const
Vector getVelocity () const
Vector getPosition () const
int getNumber () const
void setNumber (int _num)
void updatePosition (const Vector &v)
void updateVelocity (const Vector &v)
void setVelocity (const Vector &v)
void findNeighbors (std::vector< RigidBody * > &bodies)
bool isPartOfGroup () const
RigidBodyfindLeft (Vector direction)
RigidBodyfindRight (Vector direction)

Protected Attributes

Vector position
Vector velocity
Vector rotation
real inverseMass
real radius
bool awake
real motion
std::vector< RigidBody * > neighbors
int number

The documentation for this class was generated from the following files: