@adatechnology/game-weapons-three 0.29.9 → 0.29.10
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.
|
@@ -12846,7 +12846,7 @@ function createViewmodel(options) {
|
|
|
12846
12846
|
if (oneHand) placeOnBody({ THREE, hand, holder, frame: options.bodyHold?.() ?? eyeFrame(), rear: modelRear, lengthMetres: session.lengthMetres, handgun: true, right: heldAnchor(held), left: null, grip: BODY_HOLD.dualGrip, ...side === "L" ? { mirror: true } : {} });
|
|
12847
12847
|
else placeOnBody({ THREE, hand, holder, frame: options.bodyHold?.() ?? eyeFrame(), rear: modelRear, lengthMetres: session.lengthMetres, handgun: family === "pistol" || family === "revolver", hip: session.model.parts.carry === "hip", right: hold?.right ?? null, left: hold?.left ?? null });
|
|
12848
12848
|
hand.updateMatrixWorld(true);
|
|
12849
|
-
lift += (liftToKeepInView() - lift) * Math.min(1, dt * HAND_IN_VIEW.rate);
|
|
12849
|
+
lift += ((options.bodyHold?.() ? 0 : liftToKeepInView()) - lift) * Math.min(1, dt * HAND_IN_VIEW.rate);
|
|
12850
12850
|
if (lift > 1e-4) hand.position.addScaledVector(up.set(0, 1, 0).applyQuaternion(camera.quaternion), lift);
|
|
12851
12851
|
hand.updateMatrixWorld(true);
|
|
12852
12852
|
pullFromWall(dt);
|
|
@@ -16142,4 +16142,4 @@ export {
|
|
|
16142
16142
|
DEFAULT_EXPLOSIVES_SCENE,
|
|
16143
16143
|
createExplosivesTestModule
|
|
16144
16144
|
};
|
|
16145
|
-
//# sourceMappingURL=chunk-
|
|
16145
|
+
//# sourceMappingURL=chunk-WAZHNY5J.js.map
|