Browse Source

Added descriptions for start and stop methods

= 6 years ago
parent
commit
19548f1f04
1 changed files with 9 additions and 3 deletions
  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);
     }
 
-    public stop() {
+    /**
+     * Stop trailing mesh.
+     */
+    public stop(): void {
         this.getScene().onBeforeRenderObservable.remove(this._beforeRenderObserver);
     }
 
     /**
      * Update trailing mesh geometry.
      */
-    public update() {
+    public update(): void {
         let positions = this.getVerticesData(VertexBuffer.PositionKind);
         let normals = this.getVerticesData(VertexBuffer.NormalKind);
         if (positions && normals) {