Runtime state for an asteroid. More...
#include <examples/asteroids-net/asteroids3d_types.hpp>
Public Attributes | |
| bool | active = false |
| Whether this slot is active. | |
| int | generation = 0 |
| Split generation used to determine size and scoring. | |
| int | model_index = 0 |
| Asteroid model variant. | |
| glm::vec3 | position {0.0f} |
| Current world-space position. | |
| float | radius = 0.0f |
| Collision radius. | |
| glm::vec3 | rotation {0.0f} |
| Euler rotation in degrees. | |
| glm::vec3 | rotation_speed {0.0f} |
| Angular velocity in degrees per second. | |
| glm::vec3 | velocity {0.0f} |
| World-space velocity. | |
Runtime state for an asteroid.
Definition at line 265 of file asteroids3d_types.hpp.
| bool Asteroid::active = false |
Whether this slot is active.
Definition at line 271 of file asteroids3d_types.hpp.
| int Asteroid::generation = 0 |
Split generation used to determine size and scoring.
Definition at line 272 of file asteroids3d_types.hpp.
| int Asteroid::model_index = 0 |
Asteroid model variant.
Definition at line 273 of file asteroids3d_types.hpp.
| glm::vec3 Asteroid::position {0.0f} |
Current world-space position.
Definition at line 266 of file asteroids3d_types.hpp.
| float Asteroid::radius = 0.0f |
Collision radius.
Definition at line 270 of file asteroids3d_types.hpp.
| glm::vec3 Asteroid::rotation {0.0f} |
Euler rotation in degrees.
Definition at line 268 of file asteroids3d_types.hpp.
| glm::vec3 Asteroid::rotation_speed {0.0f} |
Angular velocity in degrees per second.
Definition at line 269 of file asteroids3d_types.hpp.
| glm::vec3 Asteroid::velocity {0.0f} |
World-space velocity.
Definition at line 267 of file asteroids3d_types.hpp.