Colliding camera with mesh

Blitz3D Forums/Blitz3D Beginners Area/Colliding camera with mesh

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.

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