How can I add a force to knock a character back a certain distance when hit? I am using the first person template. I have it set up to deal damage and eventually destroy the actor when enough damage is done, but can’t figure out how to force them back when the projectile hits them.
What you can do is get the projectile velocity and use that on a “launch character” to launch the character in the direction of the projectiles impact velocity.
The projectile actually does already launch other objects in the scene that have physics turned on. My enemy character right now is just a cube in the character that moves toward me. If I turn physics on that cube, then it doesn’t move properly with the rest of the character when it moves toward me using AI Move To.
You can use Add impulse, Add force, or Launch character.
Here is a link to the docs: