Question by
Franklin96 · Jan 08, 2021 at 11:48 AM ·
rotationscripting problem
Spine Look Rotation Wrong
Hello, i'm trying to set Spine's Character Rotation same as Camera Rotation. In Idle Animation, the rot is right, but on other anim, is wrong. I also tried with an IK solution, making Spine look at target, like a cube, but the result is the same. void Start () { animator = Parent.GetComponent(); StartRotation = SpineObj.transform.rotation; }
void LateUpdate (){
if(!ikActive){
SpineObj.transform.rotation=Camera.main.transform.rotation*StartRotation;
}
}
ikbug.jpg
(81.1 kB)
Comment
Your answer
Follow this Question
Related Questions
Ambient Emitter inside a BoxCollider - Rotation not recognized 0 Answers
AI targeting player in complete wrong direction 1 Answer
how to shoot on different direction while moving away 1 Answer
Rotating object over time 0 Answers
How do I smoothly rotate the GameObejcts with negative 90 degrees 0 Answers