1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-02 18:36:41 +00:00

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 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 // trace to where character would go if there were no obstructions
tracer.doTrace(colobj, newPosition, nextpos, engine); tracer.doTrace(colobj, newPosition, nextpos, engine);