Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ctGravityWell Class Reference

1/r^2 force. More...

#include <forces.h>

Inheritance diagram for ctGravityWell:

List of all members.

Public Methods

 ctGravityWell (ctPhysicalEntity *BIG_mass)
virtual ~ctGravityWell ()
 me clean up.

virtual ctVector3 apply_F (ctDynamicEntity &pe)

Detailed Description

1/r^2 force.

( G * M1 * m2 ) / ( r^2 ) a gravity well. gravitational attraction between bodies. add bodies to this force that will exert force on bodies that have this force included in their force list. !me right now an object passing too close to the discontinuity will get accelerated way to fast and energy will NOT be conserved. This could be fixed using R-K method with adaptive step-sizing or some happy horse-shit like that.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000