mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
e5fa457fe7
Before this change, if an actor position was changed while the physics simulation was running, the simulation result would be discarded. It is fine in case of one off event such as teleport, but in the case of scripts making use of this functionality to make lifts or conveyor (such as Sotha Sil Expanded mod) it broke actor movement. To alleviate this issue, at the end of the simulation, the position of the Actor in the world is compared to the position it had at the beginning of the simulation. A difference indicate a force move occured. In this case, the Actor mPosition and mPreviousPosition are translated by the difference of position. Since the Actor position will be really set while the next simulation runs, we save it in the mNextPosition field. |
||
---|---|---|
.. | ||
docs | ||
aiextensions.cpp | ||
aiextensions.hpp | ||
animationextensions.cpp | ||
animationextensions.hpp | ||
cellextensions.cpp | ||
cellextensions.hpp | ||
compilercontext.cpp | ||
compilercontext.hpp | ||
consoleextensions.cpp | ||
consoleextensions.hpp | ||
containerextensions.cpp | ||
containerextensions.hpp | ||
controlextensions.cpp | ||
controlextensions.hpp | ||
dialogueextensions.cpp | ||
dialogueextensions.hpp | ||
extensions.cpp | ||
extensions.hpp | ||
globalscripts.cpp | ||
globalscripts.hpp | ||
guiextensions.cpp | ||
guiextensions.hpp | ||
interpretercontext.cpp | ||
interpretercontext.hpp | ||
locals.cpp | ||
locals.hpp | ||
miscextensions.cpp | ||
miscextensions.hpp | ||
ref.cpp | ||
ref.hpp | ||
scriptmanagerimp.cpp | ||
scriptmanagerimp.hpp | ||
skyextensions.cpp | ||
skyextensions.hpp | ||
soundextensions.cpp | ||
soundextensions.hpp | ||
statsextensions.cpp | ||
statsextensions.hpp | ||
transformationextensions.cpp | ||
transformationextensions.hpp | ||
userextensions.cpp | ||
userextensions.hpp |