MCPcopy Create free account
hub / github.com/Prograda/Skybolt / getNearestPlanet

Method getNearestPlanet

src/Skybolt/SkyboltSim/Particles/ParticleSystem.cpp:87–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

updateMethod · 0.80

Calls 1

getPositionMethod · 0.45

Tested by

no test coverage detected