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.
b = b + ...
Reply


Messages In This Thread
RE: A bigger bouncing ball demo - collision with vector reflection - by bplus - 09-18-2024, 01:07 PM



Users browsing this thread: 17 Guest(s)