- Home /
How to make paddle influence ball motion in brickbreaker
I'm making BrickBreaker in Unity, and one issue I have is that I can't make the paddle influence the ball. In the original BrickBreaker games, the paddle's motion would affect the ball slightly, like if the paddle was moving in the opposite direction of the ball then the ball's horizontal velocity would somewhat slow down.
This allowed for a degree of control, rather than having the ball keep bouncing independently .
I need help implementing this. I tried adding friction to the paddle, using a physics material, but it didn't make a difference. If I added friction to the ball, it would lose a large part of its tangential velocity on every collison, which made it unnatural.
I was thinking analysing every collision with the paddle through a script, and adding a force or directly modifying the rigidbody velocity, but was wondering if there is a simpler/better solution.
Any code should ideally be in C#. Thanks