Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
EngineTrailGenerator Class Reference
Collaboration diagram for EngineTrailGenerator:
[legend]

Public Member Functions

 EngineTrailGenerator (Engine &engine, const WorldObject &creator)
 
void setLifetime (float lifetime)
 
void setColor (int color)
 
void setEmissiveness (float emissiveness)
 
void update (float deltaSec)
 

Protected Member Functions

void spawnTrail ()
 
void updateTrailSettings ()
 
glm::vec3 calculateSpawnPosition ()
 
void spawnAt (glm::vec3 position)
 

Protected Attributes

const WorldObjectm_creator
 
const Enginem_engine
 
std::unique_ptr
< VoxelExplosionGenerator
m_generator
 
glm::vec3 m_lastSpawnPoint
 
bool m_lastValid
 
float m_stepRest
 
double m_timeSinceLastSpawn
 
float m_spawnOffset
 
Property< float > prop_stepDistance
 
Property< float > prop_idleTime
 

The documentation for this class was generated from the following files: