Many questions about collisions

Blitz3D Forums/Blitz3D Programming/Many questions about collisions

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.

The easiest but not the fastest:

Function FindBullet.Bullet(entity)
k.Bullet = Null

For k.Bullet = Each Bullet
   if (k\entity = entity) return k
Next

return k

end function


And why do you need the two if's in the code above?. Just make the for i=1 to countcollisions...