Paddle working


Update: The paddle now works!

I was very surprised how little code was needed for this.

```           
float angle = (float)(ball.position.y - leftControllable.position.y) / (leftControllable.scale.y / 2.0);  

dirVector.y = angle * biasFactor;

```

Files

Ping-artifact-itch-31.zip 8.4 MB
10 hours ago

Get GameJam > Ping

Leave a comment

Log in with itch.io to leave a comment.