mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
update particles randomizer
This commit is contained in:
parent
7abb1a88c7
commit
082a87db4e
3 changed files with 6 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ void Emitter::update(float delta, std::vector<Particle>& particles) {
|
|||
// spawn particle
|
||||
Particle particle = prototype;
|
||||
particle.emitter = this;
|
||||
particle.random = rand();
|
||||
particle.random = random.rand32();
|
||||
particle.position = position;
|
||||
particle.velocity += glm::ballRand(1.0f) * explosion;
|
||||
particles.push_back(std::move(particle));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue