VEE_Gravitate Class Reference

An abstract particle that pulls other particles towards itself. More...

#include <vee_gravitate.h>

Inheritance diagram for VEE_Gravitate:

Inheritance graph
[legend]
Collaboration diagram for VEE_Gravitate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Static Public Member Functions

Protected Attributes


Detailed Description

An abstract particle that pulls other particles towards itself.


Constructor & Destructor Documentation

VEE_Gravitate::VEE_Gravitate  ) 
 

VEE_Gravitate::VEE_Gravitate VEE_Vector3  location,
VEE_Vector3  velocity,
float  ageLimit,
float  m,
bool  updateVelocity = false
 

VEE_Gravitate::~VEE_Gravitate  )  [inline]
 


Member Function Documentation

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

Receive and process a value.

Parameters:

  • "decaypower", float, range: 0 to inf

  • "epsilon", float, range: 0 to inf

  • "magnitude", float, range: -inf to inf

  • "range", float, range: 0 to inf

  • "maxforce", float, range: -inf to inf

Reimplemented from VEE_ForceObject.

VEE_Variable VEE_Gravitate::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_Gravitate::clone  )  const [virtual]
 

Reimplemented from VEE_Particle2.

float VEE_Gravitate::epsilon  )  [inline]
 

float VEE_Gravitate::magnitude  )  [inline]
 

void VEE_Gravitate::setEpsilon float  e  )  [inline]
 

void VEE_Gravitate::setMagnitude float  m  )  [inline]
 

void VEE_Gravitate::setRange float  r  )  [inline]
 

void VEE_Gravitate::setDecayPower float  decay  )  [inline]
 

Sets the decay speed of the force [0 - inf].

void VEE_Gravitate::getForce VEE_Vector3 force,
const VEE_Vector3 ,
const VEE_Vector3 location
[virtual]
 

Implements VEE_ForceObject.

void VEE_Gravitate::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_Gravitate::factory  )  [static]
 

Reimplemented from VEE_Particle.


Member Data Documentation

float VEE_Gravitate::m_epsilon [protected]
 

float VEE_Gravitate::m_magnitude [protected]
 

float VEE_Gravitate::m_decayPower [protected]
 

float VEE_Gravitate::m_range [protected]
 

float VEE_Gravitate::m_maxForce [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