How do I stop bullets from going through walls?

I am making an FPS game and I can’t get the bullets to stop on collision with a wall, enemy, tree etc.

How do I make it stop?

Thanks.

on collision, end object
use a collision sensor, with a property wall,
connect to AND
connect to EDIT OBJECT: ENDOBJECT

The bullet moves too fast for the collision to be detected.

firstly, doesnt it stop when it hits a solid object?
secondly, why are you using physical objects, instead of rays?
thirdly, if you still want to use physical bullets, use a ray sensor with a range equal to the delay,
and connect it to end object,
meaning that it pre-empts it’s deletion, but catches up with the lag so it ends normally

I have used physical bullets from the start and had used the end object on collision method, I didn’t know there was another way! (agoose77 “secondly, why are you using physical objects, instead of rays?”), Could you explain this a bit?
Thanks

Don’t add bullets like objects with starting velocity. Instead use Python to shoot a ray and detect the location where the collision will occur and then add your bullet on the tip of your gun, then set the position of the bullet to the position the ray detected. The bullet will look like its moving really fast.

There is that.
i was referring to a completely python alternative.
it’s simple.
when you pull the trigger, it checks a property on the gun if you have ammo (set starting ammo)
if you do, it looks at the ray sensor, which is truepulse, meaning if it “sees” anything, it pulses positive
the python script sees if the ray is hitting anythin, if yes, it looks for a property called “health” in the hit object.
if it finds health, it takes off 1 from the health property.
from there you can set it to change the enemy to “dying” etc.
To make collision, there is a script… look up Goliath’s FPS on blender underground.
Here’s my demo, with some of his code.
http://blenderartists.org/forum/showthread.php?t=204452&p=1761427&viewfull=1#post1761427

-Try increasing the number of physics substeps to the max?
-Try increasing the collision detection margin?

One other thing:
-Increase radius in the logic panel.

One other thing:
-Increase radius in the logic panel.