I'm using above code to rotate object pointing where it moves:
transform.forward = m_Rigidbody.velocity;
It works fine, however the problem is that I can't rotate this object anymore after set direction.
transform.forward = m_Rigidbody.velocity; transform.Rotate(0, 0, m_RotateSpeed * Time.deltaTime * 500); // Not Working
Code is simple, first rotate the object to point where it goes and then rotate z axis. But when I ran the game, it just shaking little bit and didn't rotate at all.
Why it doesn't work even rotating code after the transform.forward? Any advice will very appreciate it.