- Home /
The question is answered, right answer was accepted
How do you attach moving parts (moved by physics) to an animated character? (Secondary Animations)
I basically want to attach something like a sword sheath or a pouch to my animated character and when I move around I want the sheath to be affected by movement. I've tried using hinges and joints but the objects I attached just stayed at the spawn point and didn't follow the character. They were glitching around a bit when I turned but all in all they were just not moving.
I unfortunately was not able to find anything related to this.
Any help is greatly appreciated!
Answer by snoutie · Apr 27, 2021 at 01:52 AM
I've found the solution. I had to parent the objects to the skeleton and not the mesh itself.
https://forum.unity.com/threads/secondary-motion-with-physics.863257
Then I encountered jittering because my character controller was colliding with my joints, fixed using:
Physics.IgnoreCollision(collider1, collider2, true);
Follow this Question
Related Questions
Disabling isKinematic on a hinge joint at runtime - keeping motion to axis 0 Answers
physically based animation 1 Answer
Animate Physics. Moving a rigidbody with an animation 0 Answers
How to use character controller to push down hinge joint properly 1 Answer
Accurate weighing scales using hinge joints and rigid bodies 0 Answers