Announcement

Collapse
No announcement yet.

Add Impulse to dead enemy

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    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?
    Attached Files

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

    Comment

    Working...
    X