@adatechnology/game-vehicles-three 0.13.1 → 0.14.1

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.
@@ -1825,7 +1825,7 @@ var createPhysicalCar = ({ THREE, services, vehicle, root, colliders, runOver })
1825
1825
  };
1826
1826
 
1827
1827
  // src/test-area/run-over-link.ts
1828
- import { CROWD_AGENTS_CHANNEL } from "@adatechnology/game-physics";
1828
+ import { CROWD_AGENTS_CHANNEL, CROWD_DYING_VELOCITY_CHANNEL } from "@adatechnology/game-physics";
1829
1829
  import { createRunOver } from "@adatechnology/game-vehicles-driving";
1830
1830
  var createRunOverLink = (services) => {
1831
1831
  const channel = services.channel(CROWD_AGENTS_CHANNEL);
@@ -1842,6 +1842,7 @@ var createRunOverLink = (services) => {
1842
1842
  for (const vehicle of vehicles) stops.set(vehicle, runOver.track(vehicle));
1843
1843
  };
1844
1844
  const stopListening = channel.onChange(follow);
1845
+ const stopLending = services.channel(CROWD_DYING_VELOCITY_CHANNEL).publish(() => runOver?.dyingVelocity);
1845
1846
  follow();
1846
1847
  return {
1847
1848
  track: (vehicle) => {
@@ -1855,6 +1856,7 @@ var createRunOverLink = (services) => {
1855
1856
  },
1856
1857
  dispose: () => {
1857
1858
  stopListening();
1859
+ stopLending();
1858
1860
  runOver?.dispose();
1859
1861
  runOver = void 0;
1860
1862
  vehicles.clear();
@@ -5363,4 +5365,4 @@ export {
5363
5365
  createProvingModule,
5364
5366
  loadProvingModule
5365
5367
  };
5366
- //# sourceMappingURL=chunk-XULE4MKH.js.map
5368
+ //# sourceMappingURL=chunk-EBA33DWN.js.map