Просмотр исходного кода

Emitter particle random is now seeded

Clement Espeute 2 лет назад
Родитель
Сommit
54f3dd55e8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      hrt/prefab/fx/Emitter.hx

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

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