Hi, I’ve been trying to create a plane, I have had people pass me several ideas, I have tried using math and tried doing it intuitively.
So far nothing has really worked perfectly, but I have had better results from hacking it together rather than trying to follow specific scientific formulas. I also have found physics components to be more trouble than they are worth.
Part of my is just saying “give up!” another part of me is saying “dont let it beat you!”.
Here’s what I’ve done, when you thrust it will add from local coords to world coords, so when you rotate you keep that angular velocity.
When you pitch too high your pitching turn speed will slow down. (Stall Curve)
When you pitch too high or roll to yourside you will loose lift (LiftCurve and Banking Curve)
Currently Lift only works on Z axis, so does weight.
I am taking the assumption that if you are flying at 0 degrees, straight ahead, that your Lift equals Weight, and working backwards from that.
I am assuming that extra lift is not created past the base speed, but lowering the speed will below that will reduce lift. (for landing etc)
There is a drag vector, so that the plane will loose speed faster on its local Z faster than Y and Y faster than X. (X being forward), So if you pull up suddenly, and break you will stop very quickly.
TO DO:
Next thing I want to do is make it so there is a kind of “pulling factor”, so that the plane will kind of be dragged to its velocity, so if the plane is going on the X axis and has velocity on its Y axis, that the plane will try to rotate towards the Y axis, or if the plane has lost its forward velocity it will start to nose dive.
Like I said, its a hack, but hopefully I can get some interesting results. I have tried to use scientific equations but they haven’t worked so well.