#include <forces.h>
Inheritance diagram for ctGravityWell:
Public Methods | |
ctGravityWell (ctPhysicalEntity *BIG_mass) | |
virtual | ~ctGravityWell () |
me clean up. | |
virtual ctVector3 | apply_F (ctDynamicEntity &pe) |
( 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.