Hello!
I’ve just started my adventure with Unity and immediately run into troubles: I am trying to display a triangle on the screen, rotate it with LEFT/RIGHT and go forward/back with UP/DOWN. I use transform.up to move ship forward, unfortunately after rotating the ship it goes into wrong direction for some reason…
if (Input.GetKey(KeyCode.UpArrow))
{
ship.transform.Translate(s.transform.up * 1);
}
if (Input.GetKey(KeyCode.LeftArrow))
{
ship.transform.Rotate(0,0,1, Space.Self);
}
any ideas what I am doing wrong?