1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-30 10:41:34 +00:00

Slightly increase backoff value

This commit is contained in:
scrawl 2017-02-10 02:05:12 +01:00
parent b3d5c2bd7f
commit cf7b0098ed

View file

@ -401,7 +401,7 @@ namespace MWPhysics
if (tracer.mFraction < 1E-9f)
{
// Try to separate by backing off slighly to unstuck the solver
const osg::Vec3f backOff = (newPosition - tracer.mHitPoint) * 1E-3f;
osg::Vec3f backOff = (newPosition - tracer.mHitPoint) * 1E-2f;
newPosition += backOff;
}