Fries
4200a3e7df
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.
5 lines
112 B
Text
5 lines
112 B
Text
[gd_resource type="PhysicsMaterial" format=3 uid="uid://e05n66x8ug77"]
|
|
|
|
[resource]
|
|
friction = 0.0
|
|
bounce = 1.25
|