MiniB3D Sphere collision example

BlitzMax Forums/BlitzMax Programming/MiniB3D Sphere collision example

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.

Havent tested this yet but you are using the following calculation for the distance:
Local dist:Float = relx * relx + rely * rely + relz * relz

If I remember geometry well enough, you should take 3th root of that.
Since you compare it to the 2nd power of minDist, you actually took the 2nd root.