Explorar o código

Default emitter position

David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
aa40cadb31
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Particles/baseParticleSystem.ts

+ 1 - 1
src/Particles/baseParticleSystem.ts

@@ -65,7 +65,7 @@ export class BaseParticleSystem {
     /**
      * The emitter represents the Mesh or position we are attaching the particle system to.
      */
-    public emitter: Nullable<AbstractMesh | Vector3> = null;
+    public emitter: Nullable<AbstractMesh | Vector3> = Vector3.Zero();
 
     /**
      * The maximum number of particles to emit per frame