mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-18 09:18:15 +00:00
Update raymath.h
This commit is contained in:
@@ -286,7 +286,7 @@ RMDEF Vector2 Vector2Rotate(Vector2 v, float degs)
|
||||
// Move Vector towards target
|
||||
RMDEF Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance)
|
||||
{
|
||||
Vector2 result = { 0 }
|
||||
Vector2 result = { 0 };
|
||||
float dx = target.x - v.x;
|
||||
float dy = target.y - v.y;
|
||||
float value = (dx*dx) + (dy*dy);
|
||||
|
Reference in New Issue
Block a user