CPU-side representation of a single particle during its lifetime. More...
#include <ParticleEmitterComponent.hpp>
Public Attributes | |
| glm::vec3 | position = glm::vec3(0.0f) |
| Current world position. | |
| glm::vec3 | velocity = glm::vec3(0.0f) |
| Current velocity. | |
| vex::rgba | color = vex::rgba(1.0f, 1.0f, 1.0f, 1.0f) |
| Current color. | |
| vex::rgba | startColor = vex::rgba(1.0f, 1.0f, 1.0f, 1.0f) |
| Color at spawn. | |
| vex::rgba | endColor = vex::rgba(1.0f, 1.0f, 1.0f, 0.0f) |
| Color at end of life. | |
| float | startSize = 1.0f |
| Size at spawn. | |
| float | endSize = 0.0f |
| Size at end of life. | |
| float | life = 0.0f |
| Remaining lifetime in seconds. | |
| float | startingLife = 1.0f |
| Total lifetime in seconds. | |
CPU-side representation of a single particle during its lifetime.
Definition at line 29 of file ParticleEmitterComponent.hpp.
Current color.
Definition at line 32 of file ParticleEmitterComponent.hpp.
Color at end of life.
Definition at line 34 of file ParticleEmitterComponent.hpp.
| float vex::Particle::endSize = 0.0f |
Size at end of life.
Definition at line 36 of file ParticleEmitterComponent.hpp.
| float vex::Particle::life = 0.0f |
Remaining lifetime in seconds.
Definition at line 37 of file ParticleEmitterComponent.hpp.
| glm::vec3 vex::Particle::position = glm::vec3(0.0f) |
Current world position.
Definition at line 30 of file ParticleEmitterComponent.hpp.
Color at spawn.
Definition at line 33 of file ParticleEmitterComponent.hpp.
| float vex::Particle::startingLife = 1.0f |
Total lifetime in seconds.
Definition at line 38 of file ParticleEmitterComponent.hpp.
| float vex::Particle::startSize = 1.0f |
Size at spawn.
Definition at line 35 of file ParticleEmitterComponent.hpp.
| glm::vec3 vex::Particle::velocity = glm::vec3(0.0f) |
Current velocity.
Definition at line 31 of file ParticleEmitterComponent.hpp.