Hello there. My question is how would I go about scripting an airplane? I know this is a pretty big question as this question can have sub-questions, like “Do you mean the engine of the plane?” or “Do you mean the wheels of the plane?” What I am trying to find out is how to script the plane to fly in general (Pitch, Yaw, Roll, and maybe Throttle.)
Something that I guess that would be included are BodyMovers, because a lot of designs that fly have those. I will try to separate each question into it’s own paragraph.
My first question is what would be the best way to make the airplane move. Most popular choice (of what I have seen) are BodyMovers. CFrames might be used too (I hardly believe so because it is controlled by the player and it can vary due to speed and altitude and all that, but I might be wrong), and lastly, TweenService (I do not believe TweenService would be a good idea). I might not have mentioned a way that you could represent that, and if you know I way that I can create the movement by using another technique and it works better than those listed, then please tell me. Also, please list the type of seat that I would be best to use.
Adding to the above paragraph, I am want the controls to be controlled by keyboard (W/S - Pitch, A/D - Roll, Q/E - Yaw) or mouse (Wherever the mouse points is where the plane will face, Q/E - Yaw), but I am sure that if I can get either the keyboard to work or the mouse, I will be able to figure out how to implement that on the other control type.
My second question is physics. If the airplane is made using BodyMovers, does it have airplane physics by default? If not, would I implement the physics by myself (if heading straight up, then the plane is most likely going to stall, calculating angles and velocity)? If I do have to implement the physics by myself, I would create another topic for that, so the only thing that I want to know is if there are physics by default or if I need to implement them.
I know this topic turned out very long, and I apologize for that. If I posted this in the wrong category, please fell free to tell me. If this topic should be separated into different parts, please inform me about that too. If you do have an answer to any of my questions, feel free to reply to this topic. Any example code (nothing complicated) would be appreciated too. If there are basic models (like a single object that acts like an airplane) that you could show me so I could get an example, then that would be awesome. Thank you for your time and effort.