collisions optimization

BlitzMax Forums/BlitzMax Beginners Area/collisions optimization

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Urgs ...

Do not use distance checks unless you do distance square tests!
using SQRT will cost you an "extreme" amount of time, that is not really be needed in a 2D game (you can't make worlds large enough as screens can't have that high resolutions ;-) )