Blitz inbuild functions much faster than thought

Blitz3D Forums/Blitz3D Beginners Area/Blitz inbuild functions much faster than thought

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Um, thats great and all, but by optimize do you mean break? Because, your function returns the incorrect answer. Sqr is necessary to calculate distance correctly (although there are some approximations that do not use sqr).

You can do this sometimes, but usually only when comparing to another distance that wasnt sqrooted.

<edit>ah, nvrmind. I dont have b3d on this computer (just bmax on a flash drive). I guess you mean that entity distance is faster than your algorithm without even using a sqr?