I have tried almost every api call that lets you rotate a gameobject, and this thing will NOT rotate via code, using C#.
- It has an animator attached that animates rotation, but the rotation animation is not playing when I try to rotate from code (only a position animation is playing).
- The gameobject & parents are not static.
- Have tried rotation gameobject and parent, neither one will rotate.
- Have tried euler angles rotations, quaternion rotations, transform.lookat, no errors but the thing will never rotate from it's original position while playing the position animation (up-down motion animating Y value of position.
I even recorded a youtube video to help explain the problem:
[http://youtu.be/qfv0IP0LQU4][1]
[1]: http://youtu.be/qfv0IP0LQU4
Why can't I rotate this gameobject from code? Any help much appreciated!!
↧