Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A bigger bouncing ball demo - collision with vector reflection
#8
Good ole floating point math in QB64!

Well Abs() is one solution, checking if r2 - y * y > 0 before SQR is another and converting from default usu Singfle Floats to declaring all as Long should also work around the lousy math processing and might even be a nano faster. Integer math does not have to manage a decimal point.
  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-18-2024, 01:07 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)