Download

Add Impulse to dead enemy

I have it so when the enemy dies after being shot it simulates physics, this gives the appearance of a dead body. Also, I want to add an impulse so their body will be blown back with the final hit. I have it set to apply an impulse in the Y direction to the mesh so it looks like it works but if you stand on the other side than the enemy is moved to the wrong side. So what I’m wondering is how can I make the enemy get pushed back in the correct direction which would be behind. Is there a certain node that I should attach or use a different type of impulse for this?

You must get bullet(or what do damage), bullet forward vector * damageImpulse(float) > its your impulse vector