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
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  WinAPI Mouse Demo Pete 0 186 12-20-2025, 06:40 PM
Last Post: Pete
  Hyperlink Demo in SCREEN 0 Pete 2 371 11-02-2025, 07:13 PM
Last Post: madscijr
  Triangle-Based Collision Detection Herve 3 479 11-01-2025, 01:37 AM
Last Post: Unseen Machine
  Bouncing lines & boxes Dav 6 1,972 04-12-2025, 06:14 AM
Last Post: madscijr
  Sound Ball SierraKen 0 451 12-17-2024, 11:34 PM
Last Post: SierraKen

Forum Jump:


Users browsing this thread: 1 Guest(s)