mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
update particles randomizer
This commit is contained in:
parent
7abb1a88c7
commit
082a87db4e
3 changed files with 6 additions and 3 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include "typedefs.hpp"
|
||||
|
||||
#include "maths/UVRegion.hpp"
|
||||
#include "maths/util.hpp"
|
||||
|
||||
class Emitter;
|
||||
|
||||
|
|
@ -50,6 +51,8 @@ class Emitter {
|
|||
float timer = 0.0f;
|
||||
/// @brief Random velocity magnitude applying to spawned particles
|
||||
glm::vec3 explosion {8.0f};
|
||||
|
||||
util::PseudoRandom random;
|
||||
public:
|
||||
ParticleBehaviour behaviour;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue