Commit Graph

8 Commits (7b064920dbc1766a28279b72379b7f6383f88a4f)

Author SHA1 Message Date
elsid 34f5bc6fce
Use std math functions
To avoid implicit conversions from float to double and back.
5 months ago
elsid 041b3b233a
Normalize forward and up vectors
To avoid having any of their components to be out of the range [-1, 1].
5 months ago
elsid 75d9ab4d57
Pass Quat and Matrixf by reference
They don't fit into registers so without optimizations they are copied via
stack.
6 months ago
elsid 8e7fe44514
Support terrain sample size greater than cell size 1 year ago
Petr Mikheev 3b43cc2aea Lua: change obj.rotation from Euler angles to Quaternion 2 years ago
glassmancody.info e778ffee9b po2 scaling for average luminance 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
psi29a f90a049702 Merge branch 'movement_refactoring' into 'master'
Refactoring related to "smooth movement"

See merge request OpenMW/openmw!285

(cherry picked from commit 6eaf0a389d5aed3b74ab1a7cf89574612f964bdf)

e847b4c8 Split getSpeed() to getMaxSpeed() and getCurrentSpeed()
a96c46bc Refactor calculation of movement.mSpeedFactor
03ee9090 Use getMaxSpeed instead of getCurrentSpeed where it makes sense.
a178af5c Create helper functions `normalizeAngle` and `rotateVec2f`
4 years ago