1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 19:39:42 +00:00
openmw/apps/openmw/mwphysics
fredzio 68f4c336ce Rework again SetPos command to make more mods work.
Previous version skipped collision the frame immediately after a call to SetPos. It worked for one-off calls (teleports for instance) and continuous call along a pre-defined path (scenic travel). However, in the case of mod which uses SetPos to simulate a player-controlled movement, it is equivalent to using tcl.
Solution:
1/ skip update of mPosition and  mPreviousPosition to avoid janky interpolation
2/ use back plain moveObject() instead of moveObjectBy() since we don't want physics simulation
3/ rework a little bit waterwalking influence on coordinate because of 1/
2021-10-29 23:20:17 +02:00
..
actor.cpp Rework again SetPos command to make more mods work. 2021-10-29 23:20:17 +02:00
actor.hpp Rework again SetPos command to make more mods work. 2021-10-29 23:20:17 +02:00
actorconvexcallback.cpp Use btCollisionObject* instead of MWWorld::Ptr inside of Projectile 2021-08-08 15:05:07 +02:00
actorconvexcallback.hpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
closestnotmerayresultcallback.cpp Use btCollisionObject* instead of MWWorld::Ptr inside of Projectile 2021-08-08 15:05:07 +02:00
closestnotmerayresultcallback.hpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
collisiontype.hpp Merge branch 'forlua' into 'master' 2021-09-27 19:50:57 +00:00
constants.hpp Initialize navigator max climb and max slope settings in makeSettingsFromSettingsManager 2021-10-11 18:50:26 +02:00
contacttestresultcallback.cpp Do not block a door when it turns away. 2020-11-01 23:01:18 +01:00
contacttestresultcallback.hpp Remove some useless includes in apps/openmw/mwphysics 2021-05-15 23:13:46 +02:00
contacttestwrapper.cpp values for this higher than sGroundOffset cause jittering on some surface; use safe-seeming value slightly less than sGroundOffset 2020-12-27 22:16:11 +00:00
contacttestwrapper.h values for this higher than sGroundOffset cause jittering on some surface; use safe-seeming value slightly less than sGroundOffset 2020-12-27 22:16:11 +00:00
deepestnotmecontacttestresultcallback.cpp Use btCollisionObject* instead of MWWorld::Ptr inside of Projectile 2021-08-08 15:05:07 +02:00
deepestnotmecontacttestresultcallback.hpp Visualize hand to hand hits 2020-10-26 13:48:15 +01:00
hasspherecollisioncallback.hpp Check AiTravel destination for other actors presence 2021-09-29 01:05:23 +02:00
heightfield.cpp Replace float type for arguments to create heightfield with int 2021-10-11 19:28:08 +02:00
heightfield.hpp Replace float type for arguments to create heightfield with int 2021-10-11 19:28:08 +02:00
movementsolver.cpp Move Projectile simulation to the background thread. 2021-10-27 22:17:06 +02:00
movementsolver.hpp Move Projectile simulation to the background thread. 2021-10-27 22:17:06 +02:00
mtphysics.cpp Move Projectile simulation to the background thread. 2021-10-27 22:17:06 +02:00
mtphysics.hpp Use std::variant in the physics simulation for the different types of objects. For now only support only for actors. 2021-10-27 22:02:46 +02:00
object.cpp Move btCollisionObject creation for MWPhysics::Object into components 2021-10-11 23:14:02 +02:00
object.hpp Add missing initialization in MWPhysics::Object 2021-10-16 00:43:50 +02:00
physicssystem.cpp Rework again SetPos command to make more mods work. 2021-10-29 23:20:17 +02:00
physicssystem.hpp Move Projectile simulation to the background thread. 2021-10-27 22:17:06 +02:00
projectile.cpp Unify interface for Actor and Projectile 2021-10-27 22:03:04 +02:00
projectile.hpp Unify interface for Actor and Projectile 2021-10-27 22:03:04 +02:00
projectileconvexcallback.cpp Change projectile behaviour to be like in vanilla wrt. water plane: 2021-09-03 10:24:05 +02:00
projectileconvexcallback.hpp Use btCollisionObject* instead of MWWorld::Ptr inside of Projectile 2021-08-08 15:05:07 +02:00
ptrholder.hpp Unify interface for Actor and Projectile 2021-10-27 22:03:04 +02:00
raycasting.hpp Merge branch 'forlua' into 'master' 2021-09-27 19:50:57 +00:00
stepper.cpp Initialize navigator max climb and max slope settings in makeSettingsFromSettingsManager 2021-10-11 18:50:26 +02:00
stepper.hpp values for this higher than sGroundOffset cause jittering on some surface; use safe-seeming value slightly less than sGroundOffset 2020-12-27 22:16:11 +00:00
trace.cpp Use convexSweepTest for projectile movement to solve any 2021-01-21 20:36:33 +01:00
trace.h Use tracer hit height to skip stepping up in movement solver. 2016-12-24 23:07:44 +01:00