Runtime state for a ship projectile. More...
#include <examples/asteroids-net/asteroids3d_types.hpp>
Public Attributes | |
| bool | active = false |
| Whether this slot is active. | |
| glm::vec4 | color {1.0f, 0.58f, 0.12f, 1.0f} |
| Render color. | |
| float | lifetime = 0.0f |
| Remaining lifetime in seconds. | |
| glm::vec3 | position {0.0f} |
| Current world-space position. | |
| glm::vec3 | prev_position {0.0f} |
| Position from the previous simulation step. | |
| glm::vec3 | velocity {0.0f} |
| World-space velocity. | |
Runtime state for a ship projectile.
Definition at line 255 of file asteroids3d_types.hpp.
| bool Projectile::active = false |
Whether this slot is active.
Definition at line 261 of file asteroids3d_types.hpp.
| glm::vec4 Projectile::color {1.0f, 0.58f, 0.12f, 1.0f} |
Render color.
Definition at line 259 of file asteroids3d_types.hpp.
| float Projectile::lifetime = 0.0f |
Remaining lifetime in seconds.
Definition at line 260 of file asteroids3d_types.hpp.
| glm::vec3 Projectile::position {0.0f} |
Current world-space position.
Definition at line 256 of file asteroids3d_types.hpp.
| glm::vec3 Projectile::prev_position {0.0f} |
Position from the previous simulation step.
Definition at line 257 of file asteroids3d_types.hpp.
| glm::vec3 Projectile::velocity {0.0f} |
World-space velocity.
Definition at line 258 of file asteroids3d_types.hpp.