mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 10:09:47 +03:00
Monkey Pong: fix case of Normalized
This was changed between 3.0-alpha2 and 3.0-beta1.
This commit is contained in:
@@ -28,7 +28,7 @@ public class Paddle : Area2D
|
||||
if (area is Ball ball)
|
||||
{
|
||||
// Assign new direction
|
||||
ball.direction = new Vector2(ballDir, (float)new Random().NextDouble() * 2 - 1).normalized();
|
||||
ball.direction = new Vector2(ballDir, (float)new Random().NextDouble() * 2 - 1).Normalized();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user