VEE_Gravity Class Reference

Gravity affects other particles with a constant global force along a defined vector. More...

#include <vee_gravity.h>

Inheritance diagram for VEE_Gravity:

Inheritance graph
[legend]
Collaboration diagram for VEE_Gravity:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Static Public Member Functions

Protected Attributes


Detailed Description

Gravity affects other particles with a constant global force along a defined vector.


Constructor & Destructor Documentation

VEE_Gravity::VEE_Gravity VEE_Vector3  g = VEE_Vector3(0.0,-9.81, 0.0)  ) 
 

VEE_Gravity::~VEE_Gravity  )  [inline]
 


Member Function Documentation

bool VEE_Gravity::setValue const char *  id,
VEE_Value msg
[virtual]
 

Receive and process a value.

Parameters:

  • "gravity", Vector3

Reimplemented from VEE_ForceObject.

VEE_Variable VEE_Gravity::getVariable const char *   )  const [virtual]
 

This method needs to be overridden if the child class wants to return its values.

Reimplemented from VEE_ForceObject.

VEE_Object * VEE_Gravity::clone  )  const [virtual]
 

Reimplemented from VEE_Particle2.

VEE_Vector3* VEE_Gravity::gravity  )  [inline]
 

void VEE_Gravity::setGravity const VEE_Vector3 g  )  [inline]
 

void VEE_Gravity::updateVelocity float   )  [inline, virtual]
 

Get forces acting on this objects and add these vectors to velocity.

Reimplemented from VEE_Object.

void VEE_Gravity::update float   )  [inline, virtual]
 

Update the location of this object.

Reimplemented from VEE_ForceObject.

void VEE_Gravity::getForce VEE_Vector3 force,
const VEE_Vector3 ,
const VEE_Vector3
[virtual]
 

Implements VEE_ForceObject.

void VEE_Gravity::boundingBoxOfForce VEE_BoundingBox box  )  [virtual]
 

Get the bounding box of this force object.

Outside the bounding box the force must be zero. This method is needed since the scene boxes need to be able to determine where in the scene hierarchy the force object should be registered (VEE_SceneBox::m_forceObjects).

Implements VEE_ForceObject.

VEE_Object * VEE_Gravity::factory  )  [static]
 

Reimplemented from VEE_Particle.


Member Data Documentation

VEE_Vector3 VEE_Gravity::m_gravity [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 12 21:09:24 2007 for VEE - The Visual Effects Engine by  doxygen 1.4.6