Hi guys, so I’m just a beginner in Unity, and I’m liking Unity more and more by the minute I use it, however, I encountered something strange when I was working with the character controller script.
This line is how I translate my character when I’m going left.
if ( MoveLeft ){
this.transform.Translate( Vector2.right * MoveSpeed * Time.deltaTime );
this.transform.eulerAngles = new Vector2( 0, 180 );
}
And apparently…when I move…
[33121-What Going On.png|33121]
As you can see in the image, the Z axis has moved.
Is this supposed to happen? Or am I doing something wrong?
If you need more details, please feel free to ask. It’s giving me no problems programming-wise (So Far that is…), but I’m a very picky person when it comes down to values and stuff, and of course, I want to check if I’m doing anything wrong.