@series-inc/rundot-3d-engine 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -339,6 +339,7 @@ declare class MeshColliderComponent extends Component {
339
339
  private static computeBounds;
340
340
  protected onCreate(): void;
341
341
  private createCollider;
342
+ protected onCleanup(): void;
342
343
  getRigidBody(): RigidBodyComponentThree | null;
343
344
  }
344
345
 
@@ -304,6 +304,12 @@ var MeshColliderComponent = class extends Component {
304
304
  }
305
305
  }
306
306
  }
307
+ onCleanup() {
308
+ if (this.rigidBody) {
309
+ this.gameObject.removeComponent(RigidBodyComponentThree);
310
+ this.rigidBody = null;
311
+ }
312
+ }
307
313
  getRigidBody() {
308
314
  return this.rigidBody;
309
315
  }