p5.js collision/object interaction. Ball bounce
问题 Following the collision between a ball from an array and an object (rectangle), the ball doesn't seem to have the same bounce affect as it has when it hits the ground. When coming into contact with the object, it seems to pick up speed and suddenly glitches through and comes to rest on the ground. Questions: Why does it seem to want to rest on the ground and not on the object itself? How can I make the ball have the same bounce affect when coming into contact with the object as it has when