mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
update Emitter randomizer
This commit is contained in:
parent
7f95306c65
commit
e899575a7a
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ Emitter::Emitter(
|
||||||
texture(texture),
|
texture(texture),
|
||||||
count(count),
|
count(count),
|
||||||
preset(std::move(preset)) {
|
preset(std::move(preset)) {
|
||||||
random.setSeed(rand());
|
random.setSeed(reinterpret_cast<ptrdiff_t>(this));
|
||||||
this->prototype.emitter = this;
|
this->prototype.emitter = this;
|
||||||
timer = preset.spawnInterval * random.randFloat();
|
timer = preset.spawnInterval * random.randFloat();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue