David Catuhe 6 years ago
parent
commit
68255923e5
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/Physics/physicsHelper.ts

+ 7 - 3
src/Physics/physicsHelper.ts

@@ -309,10 +309,14 @@ class PhysicsRadialExplosionEvent {
         return { force: force, contactPoint: contactPoint, distanceFromOrigin: distanceFromOrigin };
     }
 
+    /**
+     * Triggers affecterd impostors callbacks
+     * @param affectedImpostorsWithData defines the list of affected impostors (including associated data)
+     */
     public triggerAffectedImpostorsCallback(affectedImpostorsWithData: Array<PhysicsAffectedImpostorWithData>) {
-      if (this._options.affectedImpostorsCallback) {
-        this._options.affectedImpostorsCallback(affectedImpostorsWithData);
-      }
+        if (this._options.affectedImpostorsCallback) {
+            this._options.affectedImpostorsCallback(affectedImpostorsWithData);
+        }
     }
 
     /**