mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-16 16:10:58 +00:00
7a67492d81
To make SetPos works with async physics, it was modified to register a position offset that would be applied to the real position during the simulation. A common pattern to teleport NPC in scripts is a sequence of SetPos/Disable/Enable in the same frame. Since Disable/Enable creates a new physics actor using last known RefData::Position, the registered offset never get a chance to be applied. Modify disable() to call moveObject with the offset applied, so that the newly created physics actor will have up-to-date position |
||
---|---|---|
.. | ||
actor.cpp | ||
actor.hpp | ||
actorconvexcallback.cpp | ||
actorconvexcallback.hpp | ||
closestnotmerayresultcallback.cpp | ||
closestnotmerayresultcallback.hpp | ||
collisiontype.hpp | ||
constants.hpp | ||
contacttestresultcallback.cpp | ||
contacttestresultcallback.hpp | ||
contacttestwrapper.cpp | ||
contacttestwrapper.h | ||
deepestnotmecontacttestresultcallback.cpp | ||
deepestnotmecontacttestresultcallback.hpp | ||
hasspherecollisioncallback.hpp | ||
heightfield.cpp | ||
heightfield.hpp | ||
movementsolver.cpp | ||
movementsolver.hpp | ||
mtphysics.cpp | ||
mtphysics.hpp | ||
object.cpp | ||
object.hpp | ||
physicssystem.cpp | ||
physicssystem.hpp | ||
projectile.cpp | ||
projectile.hpp | ||
projectileconvexcallback.cpp | ||
projectileconvexcallback.hpp | ||
ptrholder.hpp | ||
raycasting.hpp | ||
stepper.cpp | ||
stepper.hpp | ||
trace.cpp | ||
trace.h |