hi,
im using FreeEntity EntityPick(camera,100) to detirmine which objects to delete in a fps game. my only issue is that i can shoot objects through walls. what is the best way of doing so?
thanks,
dan
????
Why would you free the entity you pick? seems like an odd thing to do.
I'm not sure I understand what you want to achieve.
I assume this is because you haven't made your walls pickable so the entitypick is ignoring the wall in front of another pickable object.
i free the entity on a mousehit. i wrote a function to randomly place targets using types. so when i have one in pick and i click the mouse i wanted it to delete. the only problem was that i could shoot objects through walls. its working fine now. i fixed it by having everything pickable. then every mousehit i move a box to the pickedx pickedy pickedz and check to see if it intersected with a target, if so then i delete it.
thanks for leading me in the right direction shambler.
Edit: Wow, I posted this a year ago? yeash... I've come a long way.