Browse Source

Emitter particle random is now seeded

Clement Espeute 2 years ago
parent
commit
54f3dd55e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hrt/prefab/fx/Emitter.hx

+ 1 - 1
hrt/prefab/fx/Emitter.hx

@@ -211,7 +211,7 @@ private class ParticleInstance  {
 		startFrame = 0;
 		startFrame = 0;
 		speedAccumulation.set(0,0,0);
 		speedAccumulation.set(0,0,0);
 		orientation.identity();
 		orientation.identity();
-		random = hxd.Math.random();
+		random = emitter.random.rand();
 
 
 		switch(emitter.simulationSpace){
 		switch(emitter.simulationSpace){
 			// Particles in Local are spawned next to emitter in the scene tree,
 			// Particles in Local are spawned next to emitter in the scene tree,