1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-31 14:36:39 +00:00

Reduce movement solver same-position epsilon size. The previous value causes very stable idles to very slightly slide.

This commit is contained in:
Mads Buvik Sandvei 2023-12-03 13:35:02 +01:00
parent 81095686bf
commit 28eeef59bc

View file

@ -214,7 +214,7 @@ namespace MWPhysics
continue; // velocity updated, calculate nextpos again continue; // velocity updated, calculate nextpos again
} }
if ((newPosition - nextpos).length2() > 0.0001) if ((newPosition - nextpos).length2() > 0.00001)
{ {
// trace to where character would go if there were no obstructions // trace to where character would go if there were no obstructions
tracer.doTrace(actor.mCollisionObject, newPosition, nextpos, collisionWorld, actor.mIsOnGround); tracer.doTrace(actor.mCollisionObject, newPosition, nextpos, collisionWorld, actor.mIsOnGround);