浏览代码

Added descriptions for start and stop methods

= 6 年之前
父节点
当前提交
19548f1f04
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      src/Meshes/trailMesh.ts

+ 9 - 3
src/Meshes/trailMesh.ts

@@ -125,18 +125,24 @@ export class TrailMesh extends Mesh {
         }
         }
     }
     }
 
 
-    public start() {
+    /**
+     * Start trailing mesh.
+     */
+    public start(): void {
         this._beforeRenderObserver = this.getScene().onBeforeRenderObservable.add(this.update);
         this._beforeRenderObserver = this.getScene().onBeforeRenderObservable.add(this.update);
     }
     }
 
 
-    public stop() {
+    /**
+     * Stop trailing mesh.
+     */
+    public stop(): void {
         this.getScene().onBeforeRenderObservable.remove(this._beforeRenderObserver);
         this.getScene().onBeforeRenderObservable.remove(this._beforeRenderObserver);
     }
     }
 
 
     /**
     /**
      * Update trailing mesh geometry.
      * Update trailing mesh geometry.
      */
      */
-    public update() {
+    public update(): void {
         let positions = this.getVerticesData(VertexBuffer.PositionKind);
         let positions = this.getVerticesData(VertexBuffer.PositionKind);
         let normals = this.getVerticesData(VertexBuffer.NormalKind);
         let normals = this.getVerticesData(VertexBuffer.NormalKind);
         if (positions && normals) {
         if (positions && normals) {