For my 2 year project I have decided to make a particle simulator and so far so good
But I want the particle to bounce when it hits a side. Now this is a little complex as i need to have a formula that calculates the gradient and direction of the bounced particle.
I hope this makes sense, thanks!
(for example, how does pong get the ball to bounce)