Sorry about all the errors lately, but this one I can make 0 sense of. I don’t see anybody else having this issue, and when I looked on the updated site for it, it was the same as my code.
{
Rigidbody rb;
// Start is called before the first frame update
void Start()
{
rb = GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update()
{
ProcessThrust();
ProcessRotation();
}
void ProcessThrust()
{
if(Input.GetKey(KeyCode.Space))
{
rb.AddRelativeForce(Vector3.up);
}
}
void ProcessRotation()
{
if (Input.GetKey(KeyCode.A))
{
Debug.Log("rotate left");
}
else if (Input.GetKey(KeyCode.D))
{
Debug.Log("rotate right");
}
}