Answer the question
In order to leave comments, you need to log in
Transform.Rotate - continues to twist further?
Hello, in general, there are two objects, the first one I rotate with swipes, and the second one should rotate identically to the right one BUT only along the Y axis. In general, I made the following script:
public Transform Target;
float rot = Target.transform.rotation.y;
gameObject.transform.Rotate(0,rot,0);
Answer the question
In order to leave comments, you need to log in
You didn't specify an if, judging by your code here. Naturally, it will spin forever.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question