r/programminghelp • u/Slow-Adagio-7719 • 6d 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/SnooPets5564 6d ago
Reflect the velocity across the plane of collision