Colliding camera with mesh

Blitz3D Forums/Blitz3D Beginners Area/Colliding camera with mesh

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.

For something like that surely simply using entitydistance would be sufficient, and not checking for an actual collision with the gun.

For g.gun  = each gun
     IF EntityDistance(player,g\entityhandle) <= SomeSmallDistanceSpecifiedInYourCode then 
          ;Perform whatevery step you wish for when close to the gun.
     endif 
next