| 85 | } |
| 86 | |
| 87 | sim::Entity* ParticleEmitter::getNearestPlanet() const |
| 88 | { |
| 89 | sim::Vector3 position = mParams.positionable->getPosition(); |
| 90 | return mParams.nearestPlanetProvider(position); |
| 91 | } |
| 92 | |
| 93 | static double getAltitude(const sim::Entity& planet, const sim::Vector3& position) |
| 94 | { |