How do I write a simple flight simulator? There is "XFighter" program in the "Samples" folder but the airplane doesn't behave like a real one. Here is part of my program:
I couldn't get the airplane (camera) to fall to the ground if the throttle is set at 0.
throttle=(JoyU(0)-1) * -0.5 If (throttle > 0.1 And JoyX(0) < -0.1) Then TurnEntity camera,0,-JoyX(0),0 If (throttle > 0.1 And JoyX(0) > 0.1) Then TurnEntity camera,0,-JoyX(0),0 If (throttle > 0.1 And JoyY(0) < -0.1) Then MoveEntity camera,0,JoyY(0),0 If (throttle > 0.1 And JoyY(0) > 0.1) Then MoveEntity camera,0,JoyY(0),0 If throttle > 0.1 Then MoveEntity camera,0,0,throttle
I couldn't get the airplane (camera) to fall to the ground if the throttle is set at 0.