viewer: slow first-person walk/run/jump speeds
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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
08731b5bde
commit
36132bbcea
@@ -1388,11 +1388,11 @@ export const FirstPersonControls = () => {
|
|||||||
floatSensorRadius={0.15}
|
floatSensorRadius={0.15}
|
||||||
floatSpringK={1200}
|
floatSpringK={1200}
|
||||||
gravity={9.81}
|
gravity={9.81}
|
||||||
jumpVel={6}
|
jumpVel={5}
|
||||||
key="first-person-controller"
|
key="first-person-controller"
|
||||||
maxRunSpeed={5.5}
|
maxRunSpeed={5}
|
||||||
maxSlope={1.2}
|
maxSlope={1.2}
|
||||||
maxWalkSpeed={4}
|
maxWalkSpeed={2}
|
||||||
paused={isElevatorRideLocked}
|
paused={isElevatorRideLocked}
|
||||||
position={controllerStart.position}
|
position={controllerStart.position}
|
||||||
ref={setControllerApi}
|
ref={setControllerApi}
|
||||||
|
|||||||
@@ -410,10 +410,10 @@ export function GlbWalkthroughController({ url }: { url: string }) {
|
|||||||
floatSensorRadius={0.15}
|
floatSensorRadius={0.15}
|
||||||
floatSpringK={1200}
|
floatSpringK={1200}
|
||||||
gravity={9.81}
|
gravity={9.81}
|
||||||
jumpVel={6}
|
jumpVel={5}
|
||||||
maxRunSpeed={5.5}
|
maxRunSpeed={5}
|
||||||
maxSlope={1.2}
|
maxSlope={1.2}
|
||||||
maxWalkSpeed={4}
|
maxWalkSpeed={2}
|
||||||
position={start.position}
|
position={start.position}
|
||||||
ref={setControllerApi}
|
ref={setControllerApi}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user