瀏覽代碼

Default emitter position

David Catuhe 5 年之前
父節點
當前提交
aa40cadb31
共有 1 個文件被更改,包括 1 次插入1 次删除
  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