Bullet holes?

Hello.

I coudn’t find any solution for making a bullet hole by google. So how do I do it? I’m using line traces and it spawns a blueprint, a plane shape, to the impact point but I can’t get their rotations right.

I tried decals but they seem to wrap around objects so I have have the same rotation problem on them too :S

Any help appreciated :slight_smile:

Okay I actually got it working myself. Here’s my solution


Question, what would I use to “spawn a blueprint, a plane shape, to the impact point”?
Sorry, I am a noob with the BP :confused:

How did you calculate the rotation? Can you show your blueprint for the calculation?

Hello aloneball,

I was reading over the questions and I have written up an example of one what to achieve this result. In the example provided below I have used decals and I have rotated them using the impact normal of a line trace. I hope this information helps.

Example:

You will need to make a new material of the bullet hole that you would like. You will then need to set it as a differed decal.

Here I have found the center of the screen and I am doing a line trace outward from there, I follow up by breaking the hit result to get the location of the hit as well as the impact normal. After this I Make a rotation using the up vector for the character (NOTE: If the character is rotated this may no longer work, this was done for the example) and the impact normal. Finally I spawn the decal.

It should look like this when finished.

67315-bulletholehelp3.png

Make it a great day

will that work on cars to

Hello La_Crushar,

The above answer was an example meant to get people pointed in the right direction. Modifications may be needed depending on the application of the provided example. However, the logic behind the example should work in most cases.