Commit Graph

11 Commits (master)

Author SHA1 Message Date
Petr Mikheev 71ba94a89a Smooth turning; smooth stopping; combat headtracking 4 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
elsid f684c90932
Make angular velocity depending on actor speed
To avoid moving in circles for actors with high speed.
5 years ago
dteviot 96e3933ee9 Fixed bug in smoothTurn()
Now correctly handles changing direction from 178 to -178 degrees.
9 years ago
scrawl 7bacb9418d Various math code ported to osg 10 years ago
mrcheko 6a3dddfb9a merge master 11 years ago
mrcheko dbe1307de0 code refining + minor fixes 11 years ago
mrcheko f3626adc86 remake of z-moving in combat for flying/swimming enemies 11 years ago
mrcheko f811abb752 pathgrid shortcutting extended 11 years ago
cc9cii 2b544d550b Fixed the rotation animation glitch. 11 years ago
scrawl 39d86a9468 Improvements to smooth NPC steering 11 years ago