@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.
package/dist/index.global.js
CHANGED
|
@@ -51436,6 +51436,7 @@ var GameVehiclesThree = (() => {
|
|
|
51436
51436
|
var POSE2 = new Float64Array(7);
|
|
51437
51437
|
var GOLDEN_ANGLE = Math.PI * (1 + Math.sqrt(5));
|
|
51438
51438
|
var CROWD_AGENTS_CHANNEL = "crowd.agents";
|
|
51439
|
+
var CROWD_DYING_VELOCITY_CHANNEL = "crowd.dying-velocity";
|
|
51439
51440
|
var isPhysicsServices = (value) => {
|
|
51440
51441
|
if (typeof value !== "object" || value === null) return false;
|
|
51441
51442
|
const candidate = value;
|
|
@@ -52018,6 +52019,7 @@ var GameVehiclesThree = (() => {
|
|
|
52018
52019
|
for (const vehicle of vehicles) stops.set(vehicle, runOver2.track(vehicle));
|
|
52019
52020
|
};
|
|
52020
52021
|
const stopListening = channel.onChange(follow);
|
|
52022
|
+
const stopLending = services.channel(CROWD_DYING_VELOCITY_CHANNEL).publish(() => runOver2?.dyingVelocity);
|
|
52021
52023
|
follow();
|
|
52022
52024
|
return {
|
|
52023
52025
|
track: (vehicle) => {
|
|
@@ -52031,6 +52033,7 @@ var GameVehiclesThree = (() => {
|
|
|
52031
52033
|
},
|
|
52032
52034
|
dispose: () => {
|
|
52033
52035
|
stopListening();
|
|
52036
|
+
stopLending();
|
|
52034
52037
|
runOver2?.dispose();
|
|
52035
52038
|
runOver2 = void 0;
|
|
52036
52039
|
vehicles.clear();
|