I am trying to make \'Pong\' with p5.js but I don\'t know how to code the collision between the paddles and the ball.
var height = 500; canvas height
var height = 500;