mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +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 |
||
---|---|---|
.. | ||
action.cpp | ||
action.hpp | ||
actionalchemy.cpp | ||
actionalchemy.hpp | ||
actionapply.cpp | ||
actionapply.hpp | ||
actiondoor.cpp | ||
actiondoor.hpp | ||
actioneat.cpp | ||
actioneat.hpp | ||
actionequip.cpp | ||
actionequip.hpp | ||
actionharvest.cpp | ||
actionharvest.hpp | ||
actionopen.cpp | ||
actionopen.hpp | ||
actionread.cpp | ||
actionread.hpp | ||
actionrepair.cpp | ||
actionrepair.hpp | ||
actionsoulgem.cpp | ||
actionsoulgem.hpp | ||
actiontake.cpp | ||
actiontake.hpp | ||
actiontalk.cpp | ||
actiontalk.hpp | ||
actionteleport.cpp | ||
actionteleport.hpp | ||
actiontrap.cpp | ||
actiontrap.hpp | ||
cellpreloader.cpp | ||
cellpreloader.hpp | ||
cellref.cpp | ||
cellref.hpp | ||
cellreflist.hpp | ||
cells.cpp | ||
cells.hpp | ||
cellstore.cpp | ||
cellstore.hpp | ||
cellvisitors.hpp | ||
class.cpp | ||
class.hpp | ||
containerstore.cpp | ||
containerstore.hpp | ||
contentloader.hpp | ||
customdata.cpp | ||
customdata.hpp | ||
datetimemanager.cpp | ||
datetimemanager.hpp | ||
doorstate.hpp | ||
esmloader.cpp | ||
esmloader.hpp | ||
esmstore.cpp | ||
esmstore.hpp | ||
failedaction.cpp | ||
failedaction.hpp | ||
globals.cpp | ||
globals.hpp | ||
inventorystore.cpp | ||
inventorystore.hpp | ||
livecellref.cpp | ||
livecellref.hpp | ||
localscripts.cpp | ||
localscripts.hpp | ||
manualref.cpp | ||
manualref.hpp | ||
nullaction.hpp | ||
player.cpp | ||
player.hpp | ||
projectilemanager.cpp | ||
projectilemanager.hpp | ||
ptr.cpp | ||
ptr.hpp | ||
recordcmp.hpp | ||
refdata.cpp | ||
refdata.hpp | ||
scene.cpp | ||
scene.hpp | ||
store.cpp | ||
store.hpp | ||
timestamp.cpp | ||
timestamp.hpp | ||
weather.cpp | ||
weather.hpp | ||
worldimp.cpp | ||
worldimp.hpp |