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

sheep::IForce Class Reference

#include <forcetorque.h>

Inheritance diagram for sheep::IForce:

sheep::ConstantForce sheep::LinearDampingForce List of all members.

Public Member Functions

 IForce (const Vector3 &p)
const Vector3GetPoint () const
virtual Vector3 Evaluate (Real t, const RigidBody *b) const=0

Protected Attributes

Vector3 m_point

Detailed Description

Todo:
Make the Evaluate() methods throw a "unimplemented feature" like exception by default, while still keeping this class abstract by making the destructor pure-virtual or something. This will make things simpler when new type of actor (soft bodies and so on) will be handled by the engine.

Definition at line 38 of file forcetorque.h.


Constructor & Destructor Documentation

sheep::IForce::IForce const Vector3 p  )  [inline]
 

Definition at line 120 of file forcetorque.h.


Member Function Documentation

virtual Vector3 sheep::IForce::Evaluate Real  t,
const RigidBody b
const [pure virtual]
 

Implemented in sheep::ConstantForce, and sheep::LinearDampingForce.

const Vector3 & sheep::IForce::GetPoint  )  const [inline]
 

Definition at line 124 of file forcetorque.h.


Member Data Documentation

Vector3 sheep::IForce::m_point [protected]
 

Definition at line 47 of file forcetorque.h.


The documentation for this class was generated from the following file:
Generated on Tue May 11 01:31:55 2004 for toxic by doxygen 1.3.6