Fix SmoothDamp missed type casting for Vector2
This commit is contained in:
committed by
GitHub
parent
4e44002259
commit
e1f528ec9a
@@ -1001,7 +1001,7 @@ namespace FlaxEngine
|
||||
|
||||
float maxChangeSpeed = maxSpeed * smoothTime;
|
||||
float changeSq = maxChangeSpeed * maxChangeSpeed;
|
||||
float sqrDist = change_x * change_x + change_y * change_y;
|
||||
Real sqrDist = change_x * change_x + change_y * change_y;
|
||||
if (sqrDist > changeSq)
|
||||
{
|
||||
var dist = (Real)Math.Sqrt(sqrDist);
|
||||
|
||||
Reference in New Issue
Block a user