Raycast gun (no actual projectile) on character blueprint.
A shield BP (mesh and collider) with some impact effects on the shield material that needs the collision location to work.
Turning on collisions on my shield and/or sphere collider is doing nothing. No hits are registered from gun. I’ve since learned that raycasts don’t initiate a hit event on the hit actor.
So, how would I do this - get my shield to recognize the raycast hit?
Think of an Interface as of a collection of functions that do nothing on their own. Granting an actor access to that interface allows it to implement functionality individually.
Whenever the raycast (linetrace) hits, we call the Generic Hit. A Tree actor will implement the function differently than a Shield actor.
And if you Generic Hit an actor that does not implement that interface… nothing happens, which is great.
Some good reading here if you’re into studying docs:
Okay, I’m with you. For some reason I thought the interface was a separate suggestion from the comment above it. I shall try it, thank you for the direction.