Profile image

F-12 ‘IO LANI (FT Target Tracking HUD)

675 LinearAerospike  3.1 years ago

Background

This is the F-12, a multi role fighter aircraft developed by the ILS (not related to the Lockheed YF-12 as was pointed out to me). It started out as a “Wasp 2.0” that slowly became an F/A-18 and then to what it is now. It has a nice little insignia for the ILS. This version also features a third-of-its-kind target tracking system. This version is not equipped with any weapons as it is merely designed to be a technology demonstrator.


Controls

Activate 5: Enable target tracking HUD (must have target selected first)
Activate 6: Deploy arresting hook
Activate 7: Enable thrust reverser (not realistic but helps with short landings)


Notes

HUD: The HUD (only 10 parts!) is controlled by 2 pistons hidden in the nose. The whole assembly can be picked out by dragging the gray frame. For use on other craft, ensure that the Cockpit Y coordinate matches the Left or Right Light Y coordinate, and that both the cockpit and frame are centered along the X Axis. In the pistons and lights, replace the number “1.5” with the distance from the red lights to the cockpit x2. (Subtract Cockpit Z coordinate from Light Z coordinate and multiply the difference by 2). The targeting box has lights which will turn on when the target is selected, and if the target is beyond the frame, it will form an arrow pointing in the direction of the target. It can be a bit finicky when the target is directly behind the craft and the craft is pitch-up (eg. above zero on the Artificial Horizons). Fly at night for best experience with the lights.

Horizontal Piston: clamp01(Activate5&TargetSelected)*-clamp(((cos(RollAngle)*clamp((1.5/sin(90-deltaangle(TargetHeading,Heading)))*sin(deltaangle(TargetHeading,Heading)),-1,1)*(abs(deltaangle(TargetHeading,Heading))<90))+(sin(RollAngle)*clamp((1.5/sin(90-deltaangle(TargetElevation,PitchAngle)))*sin(deltaangle(TargetElevation,PitchAngle)),-1,1)*(abs(deltaangle(TargetHeading,Heading))<90)))*4,-0.375,0.375)

Vertical Piston: clamp01(Activate5&TargetSelected)*clamp(((sin(RollAngle)*clamp((1.5/sin(90-deltaangle(TargetHeading,Heading)))*sin(deltaangle(TargetHeading,Heading)),-1,1)*(abs(deltaangle(TargetHeading,Heading))<90))-(cos(RollAngle)*clamp((1.5/sin(90-deltaangle(TargetElevation,PitchAngle)))*sin(deltaangle(TargetElevation,PitchAngle)),-1,1)*(abs(deltaangle(TargetHeading,Heading))<90)))*4,-0.375,0.375)

I hope that this code is easy to use, functional, and can be applied to any craft. If you do use it, please let me know via a comment (you don't even need to wait for a response, just go ahead). If you decide to improve on my code, even more so. I want to see how this can evolve.

Enjoy!


Miror, Creare, Explorandum


Spotlights

General Characteristics

  • Created On Windows
  • Wingspan 34.0ft (10.4m)
  • Length 38.2ft (11.6m)
  • Height 11.9ft (3.6m)
  • Empty Weight 7,522lbs (3,412kg)
  • Loaded Weight 17,231lbs (7,816kg)

Performance

  • Power/Weight Ratio 4.695
  • Wing Loading 56.8lbs/ft2 (277.3kg/m2)
  • Wing Area 303.4ft2 (28.2m2)
  • Drag Points 3153

Parts

  • Number of Parts 114
  • Control Surfaces 8
  • Performance Cost 614