- Home /
Ragdoll flings arm to one side while doing an animation
Hello everyone! i'm having this problem with my ragdoll right here:
The (green/white) model is my ragdoll and the (red floating) model is the animation which my ragdoll is copying.
Note: the red floating model has a walking animation which involves moving the legs and its 2 upper shoulders.
The issue: My Ragdoll copies the leg movement perfectly but the arm (shoulder) is somewhat not, as you can see in the picture above, my ragdoll's arms should be moving back and forward but it's only going to one side, my ragdoll is moving forward because of the walking animation but also moving a little bit to the side because the arm (shoulder) is misleading the direction it's heading.
Here is my Copy Animation script and also my properties for shoulder of the ragdoll:
// Start is called before the first frame update
void Start()
{
joint = GetComponent<ConfigurableJoint>();
}
private void Update()
{
if (!mirror) //mirror is default to true
{
joint.targetRotation = targetLimb.rotation;
}
else
{
joint.targetRotation = Quaternion.Inverse(targetLimb.rotation);
}
}
i created this ragdoll while following the tutorial of a youtuber. here's the video:https://www.youtube.com/watch?v=iNLQCwCHEBM&list=PL9gnJgSxuivEf8D6upAd5aNj6H4OFWt4m∈dex=4 ![I really need help on this, Thank you!]
Your answer
Follow this Question
Related Questions
Ragdoll doesn't recieve force when activated 0 Answers
How do I pick up a ragdoll 0 Answers
GUI script problem 2 Answers
Character Controller to Ragdoll when HP = 0 2 Answers
How to create a custom Ragdoll. 0 Answers