1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-16 16:10:58 +00:00
OpenMW/apps/openmw/mwphysics
fredzio 7a67492d81 Unbreak SetPos and the mods using it.
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
2021-03-28 21:19:14 +02:00
..
actor.cpp Unbreak SetPos and the mods using it. 2021-03-28 21:19:14 +02:00
actor.hpp make unstucking slightly smarter (can turn itself off, also acts like flat ground) 2021-03-20 21:14:56 -04:00
actorconvexcallback.cpp
actorconvexcallback.hpp
closestnotmerayresultcallback.cpp
closestnotmerayresultcallback.hpp
collisiontype.hpp
constants.hpp "static const" -> "static constexpr" in headers 2021-03-21 13:57:54 +01:00
contacttestresultcallback.cpp
contacttestresultcallback.hpp
contacttestwrapper.cpp
contacttestwrapper.h
deepestnotmecontacttestresultcallback.cpp
deepestnotmecontacttestresultcallback.hpp
hasspherecollisioncallback.hpp
heightfield.cpp Avoid heightfield conversion in newer Bullet 2021-03-11 23:52:12 +00:00
heightfield.hpp Avoid heightfield conversion in newer Bullet 2021-03-11 23:52:12 +00:00
movementsolver.cpp make unstucking slightly smarter (can turn itself off, also acts like flat ground) 2021-03-20 21:14:56 -04:00
movementsolver.hpp
mtphysics.cpp Prevent physics death spiral by falling back to true delta time when needed 2021-03-21 20:45:46 +00:00
mtphysics.hpp Prevent physics death spiral by falling back to true delta time when needed 2021-03-21 20:45:46 +00:00
object.cpp Revert "Remove physics dependency on basenode" 2021-01-29 16:51:13 +04:00
object.hpp Revert "Remove physics dependency on basenode" 2021-01-29 16:51:13 +04:00
physicssystem.cpp Prevent physics death spiral by falling back to true delta time when needed 2021-03-21 20:45:46 +00:00
physicssystem.hpp Prevent physics death spiral by falling back to true delta time when needed 2021-03-21 20:45:46 +00:00
projectile.cpp
projectile.hpp
projectileconvexcallback.cpp
projectileconvexcallback.hpp
ptrholder.hpp
raycasting.hpp
stepper.cpp
stepper.hpp
trace.cpp
trace.h