Rotate an already animated object/subobject
hello! i have a small problem...
i have an animated character (idle and walk animations) and i wanted to rotate the torso object via mouse input (like an aiming animation). is this possible? if i disable the animator controller it works (the torso bends down and up) but when the character is animated the torso wont rotate.
is this even possible?
i just started to work with unity a few days ago so i basically dont know anything except some java/c# programming...
im looking forward for your answers! :)
Answer by theANMATOR2b · Apr 13, 2017 at 03:55 PM
Look into IK in the documentation. This is only available with the humanoid setup, although there are IK solutions in the asset store if your character is not set up as humanoid.
Answer by Spidlee · Apr 15, 2017 at 05:48 AM
The reason why when you have animator enabled, and the torso won't rotate is because the animation is overriding your scripted action for that particular object.
What I would do in that instance is, create an animation involving the rotation of the torso, and use that. Else create a base transform object as a parent to your animator object/rig, and instead of rotating the torso, I'd rotate the base transform.
Your answer
Follow this Question
Related Questions
Turret rotation based on its own local rotation. 3 Answers
Sprite rotation clip & ending position 0 Answers
Smooth rotation on animation 1 Answer
RotateAround wont rotate to starting position 0 Answers
Visible Rotation from controller 1 Answer