Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::particle::StretchedQuad Struct Reference

How a stretched particle's quad is laid along its velocity. More...

#include <ParticleStretch.hpp>

Public Attributes

f32 rotation
 Radians, counter-clockwise, turning the quad's +Y onto the velocity.
f32 length
 The quad's extent along its Y.

Detailed Description

How a stretched particle's quad is laid along its velocity.

The quad's +Y runs along the velocity and is lengthened by speed; its width stays the particle's own. A particle that is not moving keeps the rotation it was given, since a direction needs a velocity.

Definition at line 19 of file ParticleStretch.hpp.

Member Data Documentation

◆ length

f32 esengine::particle::StretchedQuad::length

The quad's extent along its Y.

Definition at line 21 of file ParticleStretch.hpp.

Referenced by esengine::ParticlePlugin::collect().

◆ rotation

f32 esengine::particle::StretchedQuad::rotation

Radians, counter-clockwise, turning the quad's +Y onto the velocity.

Definition at line 20 of file ParticleStretch.hpp.

Referenced by esengine::ParticlePlugin::collect().


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