add 'angle_spread' property

This commit is contained in:
MihailRis
2024-12-23 16:04:48 +03:00
parent 90b1f63406
commit c6de7f62fe
5 changed files with 28 additions and 4 deletions
+3 -1
View File
@@ -27,6 +27,8 @@ struct Particle {
float lifetime;
/// @brief UV region
UVRegion region;
/// @brief Current rotation angle
float angle;
};
class Texture;
@@ -39,7 +41,7 @@ class Emitter {
EmitterOrigin origin;
/// @brief Particle prototype
Particle prototype;
/// @brief Particle
/// @brief Particle texture
const Texture* texture;
/// @brief Number of particles should be spawned before emitter deactivation.
/// -1 is infinite.