@series-inc/rundot-3d-engine 0.6.1 → 0.6.3

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.
package/dist/index.d.ts CHANGED
@@ -315,7 +315,10 @@ declare abstract class VenusGame {
315
315
  protected canvas: HTMLCanvasElement;
316
316
  protected renderer: THREE.WebGLRenderer;
317
317
  protected scene: THREE.Scene;
318
- protected camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
318
+ private _instanceCamera;
319
+ /** Setting the camera also updates VenusGame.camera (static) */
320
+ protected get camera(): THREE.PerspectiveCamera | THREE.OrthographicCamera;
321
+ protected set camera(cam: THREE.PerspectiveCamera | THREE.OrthographicCamera);
319
322
  private resizeListener;
320
323
  private isDisposed;
321
324
  private animationId;
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  initializePlatformAsync,
19
19
  isPlatformInitialized,
20
20
  resetPlatform
21
- } from "./chunk-IGT2NHJ3.js";
21
+ } from "./chunk-3YI5JLCR.js";
22
22
  import {
23
23
  __decorateClass
24
24
  } from "./chunk-XUS63JTZ.js";
@@ -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
 
@@ -58,7 +58,7 @@ import {
58
58
  VenusGame,
59
59
  createCollisionGroup,
60
60
  isTransformComponent
61
- } from "../chunk-IGT2NHJ3.js";
61
+ } from "../chunk-3YI5JLCR.js";
62
62
  import {
63
63
  __decorateClass,
64
64
  __publicField
@@ -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
  }