Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A bigger bouncing ball demo - collision with vector reflection
#3
great!

How is y*y getting > r2 ???

If radius = 0 Then Exit Sub 'a safety bail (thanks bplus!)

Change to

If radius < 1 then exit sub

because .7 * .7 = .49 r2 < r when r < 1
b = b + ...
Reply


Messages In This Thread
RE: A bigger bouncing ball demo - collision with vector reflection - by bplus - 09-17-2024, 05:51 AM



Users browsing this thread: 7 Guest(s)