hi im new to unity! so im a noob trying to learn. I want my spaceship to move foward and backwards with up and down arrow, and to rotate left with the left key and right with the right arrow key. i have tried with quaternion and with getkeydown and cant seem to get it to work, or it justs rotates 180 degrees at once.
for the meantime i have so it moves without rotating but it just looks wrong. would apreciate the help. thanks!
 void Update()
{
if(Input.GetKey(KeyCode.LeftArrow))
{
Vector3 position = this.transform.position;
position.x--;
this.transform.position = position;
}
if(Input.GetKey(KeyCode.RightArrow))
{
Vector3 position = this.transform.position;
position.x++;
this.transform.position = position;
}
if (Input.GetKey(KeyCode.DownArrow))
{
Vector3 position = this.transform.position;
}
if (Input.GetKey(KeyCode.DownArrow))
{
Vector3 position = this.transform.position;
position.y--;
this.transform.position = position;
}
if (Input.GetKey(KeyCode.UpArrow))
{
Vector3 position = this.transform.position;
position.y++;
this.transform.position = position;
}
if (Input.GetKeyDown(KeyCode.Space))
{
print("1");
FireBullet();
}
}