mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 22:36:39 +00:00
clang format
This commit is contained in:
parent
15c143e272
commit
af9312d869
1 changed files with 4 additions and 4 deletions
|
@ -216,9 +216,9 @@ namespace MWPhysics
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note, we use an epsilon of 1e-6 instead of std::numeric_limits<float>::epsilon() to avoid doing extremely
|
// 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.
|
// small steps. But if we make it any larger we'll start rejecting subtle movements from e.g. idle
|
||||||
// Note that, although both these comparisons to 1e-6 are logically the same, they test separate floating point
|
// animations. Note that, although both these comparisons to 1e-6 are logically the same, they test separate
|
||||||
// accuracy cases.
|
// floating point accuracy cases.
|
||||||
if (diff.length2() > 1e-6 && (newPosition - nextpos).length2() > 1e-6)
|
if (diff.length2() > 1e-6 && (newPosition - nextpos).length2() > 1e-6)
|
||||||
{
|
{
|
||||||
// trace to where character would go if there were no obstructions
|
// trace to where character would go if there were no obstructions
|
||||||
|
|
Loading…
Reference in a new issue