I’m creating an airplane simulator game, and I’m starting to program a simple airplane, but I’ve already written the code but it’s not flying and I don’t understand why, can you help me?
There are open source repos of a basic flight controls. You should consider downloading these projects and looking into how it’s all coded there. Good learning material.
I don’t know if some of the code is missing, but some of your variables are not defined, also you are calling your updates inside update instead of Update(capital U), so you’re just creating a new void called "update" instead of using the actual Update.
I fixed those issues and I used FixedUpdate instead of Update (FixedUpdate is better to use for physics updates), and now the plane script works as intended.