mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 12:49:54 +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 |
||
---|---|---|
.. | ||
bsatool | ||
esmtool | ||
essimporter | ||
launcher | ||
mwiniimporter | ||
niftest | ||
opencs | ||
openmw | ||
openmw_test_suite | ||
wizard | ||
doc.hpp |