Pong/BouncyMaterial.tres
Fries 4200a3e7df add enemy ai to the game
the enemy can now track the player with a cast that uses a shape generated in code. the enemy moves using some fancy math that gets the sign of the distance between the ball and the enemy paddles y position to get a normalised number for velocity and the velocity is lerped to smooth out any janky movement.
2023-05-17 23:41:40 -07:00

5 lines
112 B
Text

[gd_resource type="PhysicsMaterial" format=3 uid="uid://e05n66x8ug77"]
[resource]
friction = 0.0
bounce = 1.25