Download

Finding the collision component/bone from an OnComponentHit event

Hey,

I have an actor moving around my level using physics, with an OnComponentHit event set up. I also have a skeletal mesh with a physics asset set up. I am recieving the proper hit event when my actor collides with the skeletal mesh.

The problem is - I cannot seem to find a way to get from that hit event to the specific body/bone with which the collision happened. Hit.BoneName is “None” and Hit.Item is -1, meaning I can’t cast the other component to a SkeletalMeshComponent and access the Bodies property.

Is there some way of doing this? I’m on 4.8 preview 2 if it makes a difference.

Thanks