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::Projectile Struct Reference

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.

Detailed Description

Runtime state for a ship projectile.

Definition at line 255 of file asteroids3d_types.hpp.

Member Data Documentation

◆ active

bool Projectile::active = false

Whether this slot is active.

Definition at line 261 of file asteroids3d_types.hpp.

◆ color

glm::vec4 Projectile::color {1.0f, 0.58f, 0.12f, 1.0f}

Render color.

Definition at line 259 of file asteroids3d_types.hpp.

259{1.0f, 0.58f, 0.12f, 1.0f}; ///< Render color.

◆ lifetime

float Projectile::lifetime = 0.0f

Remaining lifetime in seconds.

Definition at line 260 of file asteroids3d_types.hpp.

◆ position

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

Current world-space position.

Definition at line 256 of file asteroids3d_types.hpp.

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

◆ prev_position

glm::vec3 Projectile::prev_position {0.0f}

Position from the previous simulation step.

Definition at line 257 of file asteroids3d_types.hpp.

257{0.0f}; ///< Position from the previous simulation step.

◆ velocity

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

World-space velocity.

Definition at line 258 of file asteroids3d_types.hpp.

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

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