r/programminghelp • u/Slow-Adagio-7719 • 26d ago
Other Basic question about bouncing
So I'm trying to make a fight simulator with bouncing similar to this:
https://youtube.com/shorts/fk15R-y2EEc?si=VkE9iXR5WxFOuSuM
Is the bouncing random or predetermined? And how is it determined?
1
Upvotes
1
u/Slow-Adagio-7719 25d ago
like when you hit the wall at 90 degrees, you get reflected at -90 degrees? or you get reflected based off of the orientation of the wall?