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

Method getAtmosphericDensity

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

Source from the content-addressed store, hash-verified

111}
112
113float ParticleEmitter::getAtmosphericDensity() const
114{
115 sim::Entity* planet = getNearestPlanet();
116 sim::Vector3 position = mParams.positionable->getPosition();
117 return planet ? float(sim::getAtmosphericDensity(*planet, position)) : 0.0f;
118}
119
120void ParticleKiller::update(float dt, std::vector<Particle>& particles)
121{

Callers

nothing calls this directly

Calls 2

getAtmosphericDensityFunction · 0.85
getPositionMethod · 0.45

Tested by

no test coverage detected