How can I check if a ball is moving towards my paddle in an Arkanoid-Like game?
I am programming an arkanoid-like game and would like to give the paddle a magnetic power-up that attracts the ball every time the ball is moving towards it, but then still allows the ball to bounce and to move away from the paddle itself after collision.
In order to do this I think I would need to check somehow whether the balls are moving away or towards the paddle, or at least whether they are moving closer or further the point -12 of the y axis.
Your answer
Follow this Question
Related Questions
Player looses ability to jump further right player moves. 1 Answer
How to move an object towards origin over time? 0 Answers
Move towards nearest point of another object... 0 Answers
How to move in game 2D game object with mouse? 2 Answers
How to calculate distance traveled given time and speed 0 Answers