Fix for Bullet debug assert

After changing the vector comparison to squaredDistance, the threshold
for rejecting similar vectors needed to be readjusted.
This commit is contained in:
slothlife 2014-07-13 01:39:42 -05:00
parent cae0c4a044
commit d0e1210dd7

View file

@ -364,7 +364,7 @@ namespace MWWorld
continue; // velocity updated, calculate nextpos again
}
if(newPosition.squaredDistance(nextpos) > 0.00000001*0.00000001)
if(newPosition.squaredDistance(nextpos) > 0.0001)
{
// trace to where character would go if there were no obstructions
tracer.doTrace(colobj, newPosition, nextpos, engine);