소스 검색

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