fix: run bob now lerps back to home position
This commit is contained in:
parent
b08b390c6e
commit
793391f0d3
2 changed files with 18 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue