Spawning Decal Rotation
I am wondering if I am able to spawn a decal and be able to rotate so it spawns flat on any surface instead of being rotated sideways where ever it hits. So hits a wall = vertical, hits the ground = horizontal. Its a projectile with event hit.
asked Apr 28 '15 at 09:44 PM in Blueprint Scripting
I'm responding even later but I think that while this is very close to being right, it is wrong in the sense that the behavior is placed in the wrong hands. In the above, the projectile OnHit event is given the side effect of spawning the bullet hole decal (and destroying itself). This is wrong for several reasons:
1) Only the actor taking the hit knows what kind of decal to spawn. Different actors/materials would look differently when struck. 2) Its likely that you would want the spawned decal to stick (weld?) to the actor that received the hit so if there was subsequent movement it would keep its relative position. Think of a moving target or human falling to ground.
i.e. I think the behavior should be on the OnHit event of the other actor in the collision.
answered Aug 08 '16 at 03:08 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here