Question by
BlazingGearXXRld · Jul 25, 2020 at 01:50 AM ·
physicsragdoll
Applying force to ragdoll as Animator is disabled
Hello! I'm trying to addforce to a ragdoll as my enemy is dying but it seems that force is applied before the animator is disabled which results in the ragdoll just stopping and falling down where it stands.
The force itself is applied through a shoot script that I got on my player, raycast is used to do damage and add knockback force the the enemy while alive and additional force is applied upon death but that's the part I can't seem to get to function as intended. When the raycast hits and does the final damage that activates the die function on the enemy the capsule collider and animator is disabled and ragdoll is activated, how can I carry over that force to the ragdoll?
Comment