Runtime state for an explosion or engine particle. More...
#include <examples/asteroids-net/asteroids3d_types.hpp>
Public Attributes | |
| bool | active = false |
| Whether this slot is active. | |
| glm::vec4 | color {1.0f} |
| Render color. | |
| bool | color_flash = false |
| Whether the particle flashes as it ages. | |
| float | lifetime = 0.0f |
| Remaining lifetime in seconds. | |
| float | max_lifetime = 0.0f |
| Initial lifetime in seconds. | |
| glm::vec3 | position {0.0f} |
| Current world-space position. | |
| float | size = 0.0f |
| Rendered point size. | |
| glm::vec3 | velocity {0.0f} |
| World-space velocity. | |
Runtime state for an explosion or engine particle.
Definition at line 283 of file asteroids3d_types.hpp.
| bool Particle::active = false |
Whether this slot is active.
Definition at line 291 of file asteroids3d_types.hpp.
| glm::vec4 Particle::color {1.0f} |
| bool Particle::color_flash = false |
Whether the particle flashes as it ages.
Definition at line 290 of file asteroids3d_types.hpp.
| float Particle::lifetime = 0.0f |
Remaining lifetime in seconds.
Definition at line 288 of file asteroids3d_types.hpp.
| float Particle::max_lifetime = 0.0f |
Initial lifetime in seconds.
Definition at line 289 of file asteroids3d_types.hpp.
| glm::vec3 Particle::position {0.0f} |
Current world-space position.
Definition at line 284 of file asteroids3d_types.hpp.
| float Particle::size = 0.0f |
Rendered point size.
Definition at line 287 of file asteroids3d_types.hpp.
| glm::vec3 Particle::velocity {0.0f} |
World-space velocity.
Definition at line 285 of file asteroids3d_types.hpp.