@adatechnology/game-test-room 0.17.0 → 0.18.0

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
@@ -5058,6 +5058,10 @@ function createTestRoom(options) {
5058
5058
  lastHand = { stance: state.stance, triggerFinger: state.triggerFinger, targets };
5059
5059
  arms.update(dt, state);
5060
5060
  };
5061
+ const reachAvatar = () => {
5062
+ if (!avatar?.reach || !thirdActive()) return;
5063
+ avatar.reach(push.active || heldPiece ? null : handSource?.() ?? null);
5064
+ };
5061
5065
  const applyThirdView = () => {
5062
5066
  if (!thirdActive()) return () => void 0;
5063
5067
  const home = camera.position.clone();
@@ -6225,6 +6229,7 @@ function createTestRoom(options) {
6225
6229
  if (!paused) followHeld(dt);
6226
6230
  stepSim(dt * timeScale);
6227
6231
  stepFirstPerson(paused ? 0 : dt);
6232
+ reachAvatar();
6228
6233
  if (progress && simTime - progress.at > 0.25) progress = null;
6229
6234
  hudAcc += dt;
6230
6235
  if (hudAcc >= 0.1 && ui) {