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

macos_ci_fix
Mads Buvik Sandvei 1 year ago
parent 81095686bf
commit 28eeef59bc

@ -214,7 +214,7 @@ namespace MWPhysics
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
tracer.doTrace(actor.mCollisionObject, newPosition, nextpos, collisionWorld, actor.mIsOnGround);

Loading…
Cancel
Save