diff --git a/src/data/ebike/ebikeConfig.ts b/src/data/ebike/ebikeConfig.ts index 9c235e1..577a7e6 100644 --- a/src/data/ebike/ebikeConfig.ts +++ b/src/data/ebike/ebikeConfig.ts @@ -22,7 +22,6 @@ export const EBIKE_WORLD_SCALE = 0.35; export const EBIKE_INTRO_BREAKDOWN_DISTANCE = 15; export const EBIKE_BREAKDOWN_DIALOGUE_DELAY_MS = 250; -export const EBIKE_MAX_SPEED = 3; export const EBIKE_ACCELERATION_DURATION_MS = 2000; export const EBIKE_DECELERATION_DURATION_MS = 2000; diff --git a/src/data/gameplay/repairMissions.ts b/src/data/gameplay/repairMissions.ts index 3ba887f..7f5f8ea 100644 --- a/src/data/gameplay/repairMissions.ts +++ b/src/data/gameplay/repairMissions.ts @@ -21,7 +21,7 @@ export const REPAIR_MISSIONS: Record = { "Repair the damaged cooling module before relaunching the bike", modelPath: "/models/ebike/model.gltf", modelScale: 0.3, - stageUiPath: "/assets/world/UI/ebike.webm", + stageUiPath: "/assets/world/UI/ebike-mission-notification.webm", interactUiPath: REPAIR_INTERACT_UI_PATH, brokenUiPath: REPAIR_BROKEN_UI_PATH, case: DEFAULT_REPAIR_CASE, @@ -59,7 +59,7 @@ export const REPAIR_MISSIONS: Record = { description: "Restore the pylon lamp relay and damaged panel before reconnecting the grid", modelPath: "/models/pylone/model.gltf", - stageUiPath: "/assets/world/UI/centrale.webm", + stageUiPath: "/assets/world/UI/pylon-mission-notification.webm", interactUiPath: REPAIR_INTERACT_UI_PATH, brokenUiPath: REPAIR_BROKEN_UI_PATH, case: DEFAULT_REPAIR_CASE, @@ -104,7 +104,7 @@ export const REPAIR_MISSIONS: Record = { description: "Stabilize the irrigation loop and humidity sensor before restarting the farm", modelPath: "/models/fermeverticale/model.gltf", - stageUiPath: "/assets/world/UI/laferme.webm", + stageUiPath: "/assets/world/UI/farm-mission-notification.webm", interactUiPath: REPAIR_INTERACT_UI_PATH, brokenUiPath: REPAIR_BROKEN_UI_PATH, case: DEFAULT_REPAIR_CASE, diff --git a/src/data/player/playerConfig.ts b/src/data/player/playerConfig.ts index e573afd..700d6d5 100644 --- a/src/data/player/playerConfig.ts +++ b/src/data/player/playerConfig.ts @@ -5,7 +5,7 @@ export const PLAYER_EYE_HEIGHT = 1.75; export const PLAYER_CAPSULE_RADIUS = 0.35; export const PLAYER_WALK_SPEED = 5; -export const PLAYER_EBIKE_SPEED = 30; +export const PLAYER_EBIKE_SPEED = 20; export const PLAYER_AIR_CONTROL_FACTOR = 0.35; export const PLAYER_JUMP_SPEED = 9; export const PLAYER_GRAVITY = 30; diff --git a/src/world/player/PlayerController.tsx b/src/world/player/PlayerController.tsx index 62fbe14..563b25f 100644 --- a/src/world/player/PlayerController.tsx +++ b/src/world/player/PlayerController.tsx @@ -33,7 +33,6 @@ import { EBIKE_ACCELERATION_DURATION_MS, EBIKE_CAMERA_TRANSFORM, EBIKE_DECELERATION_DURATION_MS, - EBIKE_MAX_SPEED, } from "@/data/ebike/ebikeConfig"; /** Global window properties used for ebike communication */ @@ -415,7 +414,7 @@ export function PlayerController({ } const movementSpeed = isEbikeMounted - ? EBIKE_MAX_SPEED * ebikeSpeedFactor.current + ? currentSpeed * ebikeSpeedFactor.current : currentSpeed; const accel = onFloor.current ? movementSpeed