@adatechnology/game-crowd 0.7.1 → 0.7.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.
package/dist/index.js CHANGED
@@ -3762,6 +3762,12 @@ function createCrowd(options) {
3762
3762
  return crowd;
3763
3763
  }
3764
3764
 
3765
+ // src/corpse-relocate.ts
3766
+ var relocateCorpse = (crowd, move) => {
3767
+ const entry = crowd.corpses.entries.find((candidate) => candidate.id === move.id);
3768
+ return entry !== void 0 && crowd.corpses.replace(move.id, { ...entry.data, x: move.x, z: move.z, yaw: move.yaw });
3769
+ };
3770
+
3765
3771
  // src/obstacles.ts
3766
3772
  import { NAV_OBSTACLE_KIND } from "@adatechnology/game-contracts";
3767
3773
  var LOW_WALL_MAX_HEIGHT = 1.2;
@@ -4748,6 +4754,7 @@ export {
4748
4754
  identityOf,
4749
4755
  mix32,
4750
4756
  readHordeSnapshot,
4757
+ relocateCorpse,
4751
4758
  resolvePhysics,
4752
4759
  unit,
4753
4760
  walksInto,