Unity was telling me “Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported in Unity 5.”. I finally resolved that error, but my ship still won’t move.
public class PlayerController : MonoBehaviour {
private Rigidbody rb;
void fixedUpdate()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
GetComponent<Rigidbody>().velocity = movement;
}
void Start()
{
rb = GetComponent<Rigidbody>();
rb.isKinematic = true;
fixedUpdate ();
}
}
???
I still don’t know what the problem is that Unity has… Is the error in the code? Line 12, maybe?