R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Velocity Struct Reference

Represents the velocity of an entity in a 2D space. More...

#include <Velocity.hpp>

Collaboration diagram for Velocity:
Collaboration graph

Data Fields

float vX
 
float vY
 

Detailed Description

Represents the velocity of an entity in a 2D space.

This structure is used to store the velocity components of an entity in both the X and Y directions. It can be used to control the movement of entities such as players, monsters, and projectiles.

Definition at line 10 of file Velocity.hpp.

Field Documentation

◆ vX

float Velocity::vX

The velocity of the entity along the X-axis.

Definition at line 11 of file Velocity.hpp.

◆ vY

float Velocity::vY

The velocity of the entity along the Y-axis.

Definition at line 12 of file Velocity.hpp.


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