I know how to dectect colisions and get the actors and components involved, forces, speeds, mass (they are pysics objects) but i havent been able to differenciate if the hit is result of my character pushing or hitting aggainst the object or the object is hitting my character. i have tried with normal impulse vector length and other hit info but still some interaction cases are left out, is there a way to be able on the hit result of my character colider capsule if the character was the initiator of the hit or was the other object? thanks in advance!
Hey @Lordexhavier!
First you need to define what makes an actor the “initiator”. Because when an hit event is generated for a specific actor, the hit normal is biased towards the said actor. When you visualize the hit normals from the hit events of two actors that collide for example, you’ll see that there are two hit normal vectors that are pointing to the opposite directions. So the hit results aren’t enough to distinguish the actors based on which “initiated” the collision. Which brings us back to the question, what do you consider as an “initiation”?
Perhaps what you wanna do is to pick the actor with greater speed, or the actor that’s facing more to the impact point?
These are all that can be said so far, it’s up to you to decide what makes an actor the “initiator” of a collision. Let us know if you need any help translating the logic you come up with to blueprints though
Hope this helps!