fix: run bob now lerps back to home position

This commit is contained in:
Sara 2025-08-29 18:27:10 +02:00
parent b08b390c6e
commit 793391f0d3
2 changed files with 18 additions and 6 deletions

View file

@ -26,8 +26,11 @@ private:
float base_fov{ 60.f };
float fov_factor{ 1.0f };
Vector3 home{ 0, 0, 0 };
double time{ 0.0 };
PlayerBody *body{ nullptr };
bool was_running{ false };
double run_bob_time{ 0.0 };
double run_bob_amplitude{ 0.025 };
double run_bob_frequency{ 10.0 };
};
#endif // !PLAYER_CAMERA_H