From 4faa2263267ed31b6666d474b9de5bd2fd5e4c24 Mon Sep 17 00:00:00 2001 From: math-pixel <59537610+math-pixel@users.noreply.github.com> Date: Tue, 19 May 2026 17:10:34 +0200 Subject: [PATCH] working move kikle --- src/world/player/PlayerController.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/world/player/PlayerController.tsx b/src/world/player/PlayerController.tsx index b5c25fe..4f1ad4b 100644 --- a/src/world/player/PlayerController.tsx +++ b/src/world/player/PlayerController.tsx @@ -403,8 +403,9 @@ export function PlayerController({ // 3. Dynamic camera roll based on steering! const pitchRad = THREE.MathUtils.degToRad(EBIKE_CAMERA_TRANSFORM.rotation[0]); const yawRad = THREE.MathUtils.degToRad(EBIKE_CAMERA_TRANSFORM.rotation[1]) + ebikeAngle.current; - // Tilt camera slightly opposite to the turn direction (-5 degrees maximum roll) - const rollRad = THREE.MathUtils.degToRad(EBIKE_CAMERA_TRANSFORM.rotation[2]) - steerFactor * 0.08; + // COMMENTED OUT: Camera roll/tilt during turns (keeping it flat) + // const rollRad = THREE.MathUtils.degToRad(EBIKE_CAMERA_TRANSFORM.rotation[2]) - steerFactor * 0.08; + const rollRad = THREE.MathUtils.degToRad(EBIKE_CAMERA_TRANSFORM.rotation[2]); camera.rotation.set(pitchRad, yawRad, rollRad, "YXZ"); // 4. Synchronize visual e-bike position and apply leaning!