Hi Matty,
Thanks for the reply. Just to elaborate a little, I am walking up to a gun and when I say gun I mean a big field gun(mesh) sitting on the terrain. So the entitydistance will detect when I am in close proximity and say 'press blah blah to use gun. At this point (within proximity) I am looking to enable the collision detection between the Gun and the player only.
What I mean is if by enabling collisions at this point btween gun/player, it will only check against the entity that is in range and not all the other entitys on the map. Then if I am out of range of entity(s) then clearcollisions
I thought this to be an efficient way of handling collision detection thinking that checking for all collisions on the map all the time may be a little more loading on the CPU.
Regds,
Thanks for the reply. Just to elaborate a little, I am walking up to a gun and when I say gun I mean a big field gun(mesh) sitting on the terrain. So the entitydistance will detect when I am in close proximity and say 'press blah blah to use gun. At this point (within proximity) I am looking to enable the collision detection between the Gun and the player only.
What I mean is if by enabling collisions at this point btween gun/player, it will only check against the entity that is in range and not all the other entitys on the map. Then if I am out of range of entity(s) then clearcollisions
I thought this to be an efficient way of handling collision detection thinking that checking for all collisions on the map all the time may be a little more loading on the CPU.
Regds,