@adatechnology/game-vehicles-three 0.3.5 → 0.3.7

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.js CHANGED
@@ -303,6 +303,7 @@ function markDamageables(c, damageables) {
303
303
  }
304
304
 
305
305
  // src/test-area/module.ts
306
+ import { discardObject3D } from "@adatechnology/game-shapes-three";
306
307
  import { footprintBlocker } from "@adatechnology/game-contracts";
307
308
  import { buildVehicleItem, createVehicleDestructible, createVehicleKit } from "@adatechnology/game-vehicles";
308
309
  import { createArcadeDriver as createArcadeDriver2, createSemiSimDriver as createSemiSimDriver2, createSurfaces as createSurfaces2, vehicleCorners as vehicleCorners2 } from "@adatechnology/game-vehicles-driving";
@@ -880,10 +881,10 @@ function createVehiclesTestModule(options = {}) {
880
881
  };
881
882
  const clearHelpers = () => {
882
883
  for (const entry of placed.values()) {
883
- for (const helper of entry.helpers) helper.parent?.remove(helper);
884
+ discardObject3D(entry.helpers);
884
885
  entry.helpers = [];
885
886
  }
886
- for (const axis of axes) axis.parent?.remove(axis);
887
+ discardObject3D(axes);
887
888
  axes = [];
888
889
  helpersShown = "";
889
890
  };