Proper face palm last night
On the way into work I dropped the engines into my F4. They spun up perfectly, but the instant they lit. Bang. Dead engine. Spent the rest of the journey trying to work out why.
After a long day writing network code and dealing with a proper space cadet at Sony, I sat down on the train and debugged my code.
2 minutes later. Face palm.
I use an Earth centric coordinate system. Your aircraft's position is defined by three variables. Latitude. Longitude. Radius. RADIUS..... I had put the plane at 0,0,0. The centre of the Earth.
This caused the atmosphere model to blow up and that caused the engine to blow up.
Fixed it and now I have flight controls and engines. Time to wire in all the aerodynamics and actually fly.
By the way I have modeled all the flight control systems as separate entities. This means they can be individually damaged. Going to be interesting to make a carrier landing, at night, with no elevators. ???