mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 00:39:58 +00:00
Compare new velocity to the original velocity.
Using old velocity seems awkward, probably a copypaste/refactoring bug.
This commit is contained in:
parent
e58de5e410
commit
ab1724d3db
@ -419,7 +419,7 @@ namespace MWPhysics
|
|||||||
|
|
||||||
if ((newVelocity-velocity).length2() < 0.01)
|
if ((newVelocity-velocity).length2() < 0.01)
|
||||||
break;
|
break;
|
||||||
if ((velocity * origVelocity) <= 0.f)
|
if ((newVelocity * origVelocity) <= 0.f)
|
||||||
break; // ^ dot product
|
break; // ^ dot product
|
||||||
|
|
||||||
velocity = newVelocity;
|
velocity = newVelocity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user