MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
space::Asteroid Struct Reference

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.

Detailed Description

Runtime state for an asteroid.

Definition at line 265 of file asteroids3d_types.hpp.

Member Data Documentation

◆ active

bool Asteroid::active = false

Whether this slot is active.

Definition at line 271 of file asteroids3d_types.hpp.

◆ generation

int Asteroid::generation = 0

Split generation used to determine size and scoring.

Definition at line 272 of file asteroids3d_types.hpp.

◆ model_index

int Asteroid::model_index = 0

Asteroid model variant.

Definition at line 273 of file asteroids3d_types.hpp.

◆ position

glm::vec3 Asteroid::position {0.0f}

Current world-space position.

Definition at line 266 of file asteroids3d_types.hpp.

266{0.0f}; ///< Current world-space position.

◆ radius

float Asteroid::radius = 0.0f

Collision radius.

Definition at line 270 of file asteroids3d_types.hpp.

◆ rotation

glm::vec3 Asteroid::rotation {0.0f}

Euler rotation in degrees.

Definition at line 268 of file asteroids3d_types.hpp.

268{0.0f}; ///< Euler rotation in degrees.

◆ rotation_speed

glm::vec3 Asteroid::rotation_speed {0.0f}

Angular velocity in degrees per second.

Definition at line 269 of file asteroids3d_types.hpp.

269{0.0f}; ///< Angular velocity in degrees per second.

◆ velocity

glm::vec3 Asteroid::velocity {0.0f}

World-space velocity.

Definition at line 267 of file asteroids3d_types.hpp.

267{0.0f}; ///< World-space velocity.

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