Rebound in Vector2D on collision...

I am making a (sorta) breakout kind of game, where there is a ball (sprite) that keeps moving in a 2D axis, and rebounds when it hits the walls... I am not sure where to start, whether to use a RigidBody or a script to control movement... since this is a 2D title, I seek guidance from those whom are wiser than me.

1 Reply

It's almost always a better idea to leave physics related operations to a physics library. It will be probably much more optimized and compatible with the rest of the physics operations. So if I were you, I would just add an axis constrained rigidbody on the ball with no drag then manipulate the velocity vector of it accordingly.