Merge e_bike + gps into develop #7

Merged
math-pixel merged 23 commits from feat/gps into develop 2026-05-28 05:55:19 +00:00
2 changed files with 5 additions and 10 deletions
Showing only changes of commit ed9051b0dc - Show all commits
+1 -1
View File
@@ -18,7 +18,7 @@ export interface CameraTransform {
} }
export const EBIKE_CAMERA_TRANSFORM: CameraTransform = { export const EBIKE_CAMERA_TRANSFORM: CameraTransform = {
position: [-3, 6, 0], position: [-3.5, 6, 0],
rotation: [-10, -90, 0], rotation: [-10, -90, 0],
}; };
-5
View File
@@ -278,17 +278,12 @@ export function PlayerController({
} }
} }
if (movementModeRef.current === "ebike") {
_forward.set(Math.sin(ebikeAngle.current), 0, Math.cos(ebikeAngle.current)).normalize();
_right.crossVectors(_forward, _up).normalize();
} else {
camera.getWorldDirection(_forward); camera.getWorldDirection(_forward);
_forward.setY(0); _forward.setY(0);
if (_forward.lengthSq() > 0) { if (_forward.lengthSq() > 0) {
_forward.normalize(); _forward.normalize();
_right.crossVectors(_forward, _up).normalize(); _right.crossVectors(_forward, _up).normalize();
} }
}
_wishDir.set(0, 0, 0); _wishDir.set(0, 0, 0);
if (!movementLocked) { if (!movementLocked) {