std::function< f32(f32, f32)> RandomRange
SpawnSample sampleShape(const ecs::ParticleEmitter &emitter, const RandomRange &rand)
glm::vec3 worldDirOf(const glm::vec3 &local, const EmitterFrame &f)
A local direction placed in the world — rotation ALONE.
glm::vec3 coneDirection(f32 halfAngle, const RandomRange &rand)
A direction inside the cap of half-angle halfAngle about local +Y.
glm::vec3 worldPointOf(const glm::vec3 &local, const EmitterFrame &f)