So I need to do a circle that it's moving inside a rectangle and colliding with the "walls" of it, with constant velocity. I really don't know hot to do that. I would like to do something like the DVD stand by animation but with a circle and less complex. Can somebody help me?
MATLAB: Particle animation inside a rectangle
animationmovement of a particleparticle
Best Answer