- Home /
Question by
MarceloCosta_GamesBR · Jul 25, 2014 at 06:57 PM ·
rotationinverse
Calculate Inverse rotation Y an object another
I am calculating the Y rotation of a ray less Y rotation player but it only works in 0 degrees, 90 degress, Less 90 degress but does not work for 180, I need to do functioninverse of this code you know anything about this?
Vector3 Calculate_Rot = (anim.rootRotation.y*Vector3.up - ray_Look.rotation.y* Vector3.up);
anim.SetFloat("rotation",Calculate_Rot.y*2,0.15f,Time.deltaTime);
image:
sem título.jpg
(378.3 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613155000im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
rotate parent object to straighten child object? 2 Answers
What is the rotation equivalent of InverseTransformPoint? 3 Answers
How do I rotate an object around another to have its opposite ? 0 Answers
How to flip a Quaternion to face the opposite direction, without knowing the axis 1 Answer
Flip over an object (smooth transition) 3 Answers