mirror of https://github.com/OpenMW/openmw.git
Rework again SetPos command to make more mods work.
Previous version skipped collision the frame immediately after a call to SetPos. It worked for one-off calls (teleports for instance) and continuous call along a pre-defined path (scenic travel). However, in the case of mod which uses SetPos to simulate a player-controlled movement, it is equivalent to using tcl. Solution: 1/ skip update of mPosition and mPreviousPosition to avoid janky interpolation 2/ use back plain moveObject() instead of moveObjectBy() since we don't want physics simulation 3/ rework a little bit waterwalking influence on coordinate because of 1/pull/3210/head
parent
e3cfe5d35a
commit
68f4c336ce
Loading…
Reference in New Issue