Hi was wondering if someone could help me with this, ive just started the space shooter tutorial, Ive got to step 6 “moving the player”, I did the first part of the code
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
void fixedUpdate ()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
rigidbody.velocity = movement;
}
}
no compile errors of any kind, when I go to play mode with the “game” window selected, I cannot move the player with the keyboard, ive tried using the arrow keys and wsad, the ship just stays in one spot with the engine running. Thank you