1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-28 09:06:40 +00:00

clang format

This commit is contained in:
Mads Buvik Sandvei 2023-12-04 20:56:04 +01:00
parent 15c143e272
commit af9312d869

View file

@ -215,10 +215,10 @@ namespace MWPhysics
continue; // velocity updated, calculate nextpos again
}
// Note, we use an epsilon of 1e-6 instead of std::numeric_limits<float>::epsilon() to avoid doing extremely
// small steps. But if we make it any larger we'll start rejecting subtle movements from e.g. idle animations.
// Note that, although both these comparisons to 1e-6 are logically the same, they test separate floating point
// accuracy cases.
// Note, we use an epsilon of 1e-6 instead of std::numeric_limits<float>::epsilon() to avoid doing extremely
// small steps. But if we make it any larger we'll start rejecting subtle movements from e.g. idle
// animations. Note that, although both these comparisons to 1e-6 are logically the same, they test separate
// floating point accuracy cases.
if (diff.length2() > 1e-6 && (newPosition - nextpos).length2() > 1e-6)
{
// trace to where character would go if there were no obstructions