Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::RigidBodyPoint Class Reference

#include <RigidBodyPoint.h>

Inheritance diagram for OpenCAL::RigidBodyPoint:

Inheritance graph
[legend]
Collaboration diagram for OpenCAL::RigidBodyPoint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RigidBodyPoint (RigidBody *object, const Vector3 &bodyPosition)
const Vector3 & getPosition () const
Vector3 * getPositionP ()
const Vector3 & getVelocity () const
Vector3 * getVelocityP ()
void addForce (const Vector3 &force)
void render ()
void addToState (PhaseSpace *state)
void addToDerivative (PhaseSpace *deriv)
void fromState (PhaseSpace *state)

Protected Member Functions

void calcPosition () const
void calcVelocity () const

Protected Attributes

RigidBodym_object
Vector3 m_bodyPosition

Detailed Description

This class represents a point on a rigid body, to be used as a physical object (forces will be automatically transfered to the rigid body).

Definition at line 30 of file RigidBodyPoint.h.


Member Function Documentation

void RigidBodyPoint::addForce const Vector3 &  force  )  [virtual]
 

This is when addForce adds a force at a position in body coördinates

Reimplemented from OpenCAL::Physical.

Definition at line 42 of file RigidBodyPoint.cpp.

References OpenCAL::RigidBody::addForce().

Here is the call graph for this function:

void RigidBodyPoint::render  )  [virtual]
 

Todo:
Only functions needed to work with springs are implemented

Implements OpenCAL::Object.

Definition at line 48 of file RigidBodyPoint.cpp.

References OpenCAL::System::getRenderer(), and OpenCAL::Renderer::renderPoint().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:34 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8