Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::render::Particle Struct Reference

One particle of an emitter. More...

#include <aegis2d/render/particles.hpp>

Public Attributes

Vec2 position {0.0F, 0.0F}
 Center, in logical pixels.
 
Vec2 velocity {0.0F, 0.0F}
 Velocity, in logical pixels per second.
 
float age = 0.0F
 Seconds since its birth.
 
float lifetime = 1.0F
 Seconds it lives in all.
 

Detailed Description

One particle of an emitter.

Member Data Documentation

◆ age

float aegis2d::render::Particle::age = 0.0F

Seconds since its birth.

◆ lifetime

float aegis2d::render::Particle::lifetime = 1.0F

Seconds it lives in all.

◆ position

Vec2 aegis2d::render::Particle::position {0.0F, 0.0F}

Center, in logical pixels.

◆ velocity

Vec2 aegis2d::render::Particle::velocity {0.0F, 0.0F}

Velocity, in logical pixels per second.


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