18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 13:09:16 +01:00

Merge branch 'master' into feat/renderers-cleanup

This commit is contained in:
2026-11-23 18:27:27 +01:00
70 changed files with 2865 additions and 378 deletions

View File

@@ -919,6 +919,11 @@ public:
glm::dvec3 velocity{}; // current shaking vector
glm::dvec3 offset{}; // overall shake-driven offset from base position
} ShakeState;
shake_state ShakeStateBefore; // the state before the last step of update_shake
// the shake between the last two steps of update_shake: 0 the state before the last step, 1 the state after it.
// the steps are fixed and the frames aren't, so the camera takes the state at its own moment between the two
shake_state shake_between( double const Fraction ) const;
std::pair<double, double> shake_angles( shake_state const &State ) const;
glm::dvec3 modelShake;
};