From 36132bbcea9a1c2815e6af34fa8a59ed29d0cf70 Mon Sep 17 00:00:00 2001 From: Wassim SAMAD Date: Mon, 29 Jun 2026 12:30:39 -0400 Subject: [PATCH] viewer: slow first-person walk/run/jump speeds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Walk 4→2 m/s, run 5.5→5 m/s, jump 6→5 (~1.27 m peak). Applied to both the GLB walkthrough controller (viewer) and the editor first-person controls so the two surfaces stay consistent. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../editor/src/components/editor/first-person-controls.tsx | 6 +++--- .../src/components/viewer/glb-walkthrough-controller.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/editor/src/components/editor/first-person-controls.tsx b/packages/editor/src/components/editor/first-person-controls.tsx index 38e6f33b..88820d37 100644 --- a/packages/editor/src/components/editor/first-person-controls.tsx +++ b/packages/editor/src/components/editor/first-person-controls.tsx @@ -1388,11 +1388,11 @@ export const FirstPersonControls = () => { floatSensorRadius={0.15} floatSpringK={1200} gravity={9.81} - jumpVel={6} + jumpVel={5} key="first-person-controller" - maxRunSpeed={5.5} + maxRunSpeed={5} maxSlope={1.2} - maxWalkSpeed={4} + maxWalkSpeed={2} paused={isElevatorRideLocked} position={controllerStart.position} ref={setControllerApi} diff --git a/packages/viewer/src/components/viewer/glb-walkthrough-controller.tsx b/packages/viewer/src/components/viewer/glb-walkthrough-controller.tsx index 50c83542..286cdea2 100644 --- a/packages/viewer/src/components/viewer/glb-walkthrough-controller.tsx +++ b/packages/viewer/src/components/viewer/glb-walkthrough-controller.tsx @@ -410,10 +410,10 @@ export function GlbWalkthroughController({ url }: { url: string }) { floatSensorRadius={0.15} floatSpringK={1200} gravity={9.81} - jumpVel={6} - maxRunSpeed={5.5} + jumpVel={5} + maxRunSpeed={5} maxSlope={1.2} - maxWalkSpeed={4} + maxWalkSpeed={2} position={start.position} ref={setControllerApi} />