mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 17:42:31 +00:00
Comment
This commit is contained in:
parent
26817e9cc5
commit
15c143e272
@ -217,6 +217,8 @@ 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 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)
|
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…
x
Reference in New Issue
Block a user