I am making a brickbreaker type of game and have the ball and bricks modeled as a rigidbody. The velocity of the ball is set in a script and is added to transform.position every update. When the ball collides with a brick, it correctly reflects away for one frame but then my script takes over and redirects the ball back toward the brick because the velocity was never changed. Is there a way for me to take advantage of the accurate built in collisions while also controlling velocity when it is not colliding?