I followed the tutorial and then suddenly my Rocket was falling through the floor. I don’t know why. I attached a video showing the falling Rocket if that helps pin down the problem. Here’s a Link to the VIdeo of the Rocket falling: Unity Rocket falling bug - YouTube
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour
{
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(1, 1, 1);
}
}
void ProcessRotation()
{
if (Input.GetKey(KeyCode.A))
{
Debug.Log("rotate left");
}
else if (Input.GetKey(KeyCode.D))
{
Debug.Log("rotate right");
}
}
}