Hey everyone!
I’m working on arrow shooting game.
What I have right now: arrow flying functionality, based on physics, and when arrow collides into something it stops moving and stays in the same position as it was in the moment of collision.
My enemy/target has ragdoll mechanics, so when my arrow reaches the target, the enemy is thrown forward. But as I mentioned before, the arrow stays at the same position as it was in the moment of collision. So I have something like that in result:
The arrow is just staying somewhere in the air.
What need to do: if I reach the target, I need for my arrow to stick in. And if the target is thrown forward, I need my arrow to be a part of the target and tp move with it.
Can you give me some advices how to do it, so both arrow and enemy/target are moving correctly together?
Thank you in advance!