Search Unity

arkanoid change direction

Discussion in 'Physics' started by Bolt, Apr 21, 2015.

  1. Bolt

    Bolt

    Joined:
    Dec 15, 2012
    Posts:
    296
    how can I calculate the point where the ball bounces to change direction?
    found this formula but how can I put it into practice?

    (ball.x-paddle.x)/paddle.width;