I am trying to let the ball bounce back when it is about to go off the screen.
I thought it should work with this:
bal.physicsBody?.velocity.dx = -bal.physicsBody?.velocity.dx
but it doesn't..
I am getting this error: Could not find an overload for "-" that accepts the suplied arguments.
How to solve this?