I make spawn actor blueprint.
However, when I shot material, this material pass through wall.
How can I avoid it? alt text
It probably has to do with your collision channels on the wall. Make sure it’s set to “Block All”. The collision component on your bullet should be set to “Block All” as well. Check out the FPS template included with the engine, it will show you how to set up a proper bullet.
-T
Thank you very much!!
Bullets do not pass through the wall, but it still pass through the skeletal mesh.
Do you know how to fix it?
Sorry for that late reply.
I’m guessing that you want a bullet to be destroyed when it hits a skeletal mesh. I’m also guessing you what some sort of behavior to happen when the skeletal mesh is hit (like play an animation, take damage, etc.). In the hit event for the skeletal mesh (or its collision capsule), check if the “other” is of class bullet and if true then destroy the “other” actor in the hit event. I usually do this by doing a cast. If the cast is successful then destroy the other actor.
You could also do it in the bullet itself. I don’t know if there’s a preferred method.
-T
