- Home /
I need help pls
Hi, I need help.
In my 3d game you can shoot enemies, they follow you and shoot you but, when I shoot them, I wish they would go back a little bit and when they die I wish they would fly away like a rag doll and I just can't figure out how to do it, and i don't know if it's AI's fault.
I am a beginner so I am not surprised, can anyone give me some suggestions? I would really appreciate it. Thank you,Hi, I need help.
Answer by Robotinker · Sep 01, 2020 at 12:46 AM
How are your enemies moving? If they're using physics, you can apply a force to their RigidBody components to push them back. If not, you can simulate this in whatever code is moving them around.
To make them ragdoll, you need to set up their physics shape and joints like this: https://www.youtube.com/watch?v=DInV-jHm9rk