F18 Fighter\Tank Simulation(Based on ammojs)

Hi,This is a fighter flight control system based on babylonjs+ammojs is implemented, and the flight control part is all implemented based on the ammojs physics engine:

Play Now: F18 Playerground
Github:GitHub - renjianfeng/F18FlightSimulator-ammojs: Simulation driving of F18 Fighter Based on babylonjs + ammojs(基于babylonjs+ammojs实现的F18战斗机模拟驾驶)
Doc:F18FlightSimulator-ammojs/README.en.md at master · renjianfeng/F18FlightSimulator-ammojs · GitHub

Main function list:

  1. Tail, flap, elevator, rudder, landing gear: (based on babylonjs skeleton control and related methods of ammojs vehicle class, such as suspension height, tire position information, rotation information, etc., babylonjs skeleton ik, fk control)
  2. HUD head-up display (babylonjs gui implementation, world coordinate conversion, gui AdvancedDynamicTexture, gui xmlloader)
  3. Vector control of aircraft yaw, roll and pitch. (Based on the physical control of force control, drag, lift, and angular momentum based on ammojs, the main control of flight control is realized)
  4. Details of body physics (physical realization of explosion disintegration, application of body ammojs complex)
  5. Performance optimization (body LOD strategy implementation, resource recovery, package implementation of dispose method)
  6. Map acquisition (map from: http://fastmap.xidayun.com/)
  7. Input control (support keyboard and handle control, among which xbox and ps4 handle support vibration feedback)
  8. Spatial sound effects (supports 3D spatial sound effects, and attenuates sound effects from different perspectives, such as attenuation inside and outside the cabin)
  9. Trailing effect (the aircraft will have a wake effect during the climb)


The demonstration in the first half of the video uses a keyboard and mouse, and the second half uses a ps5 controller. If you have a ps4 or xbox controller, you can also support vibration feedback.



Woot ! this is SUPER impressive.

cc @PirateJC


Gorgeous! This is beautiful!

1 Like

This is INSANE! :open_mouth:



1 Like

May be you remember (or were not born :wink: this mission in old FSX, where you had to chase an orbital object with an FA18 from the NASA. The FA18 has an operating ceiling of about 40k feets; ok it’s not space but enough to see into space and see the earth curvature. May be you could redo this mission for the official launch of v5? I know, there’s not much time left. Just an idea… Again, a great project. Simply breathtaking :heart_eyes:

1 Like

That’s a good idea :+1: . I think the scheme can be realized, just because my personal time is relatively limited. I’m not full-time in this project. If I want to complete it, I must divide some time from my current work, which is not easy. :sob: In addition, the follow-up plan list is to continue to improve the project, including the improvement of some fighter instrument panels and combat systems. Other vehicle types are also on the list, including tracked tanks, motorcycles and helicopters. :grinning: :grinning: :grinning:

Hi,the tracked tank vehicle is about to be completed. At present, the keyboard operation and track track line effect have been completed. :grinning:


Can’t wait to get airborne and test this thing :airplane: :man_pilot:

1 Like

lol, just realized I can try it. The link was just above. It’s very impressive. I would have a couple of comments however if you don’t mind (it’s always easier to crap comment than to create :wink:
I find it hard to keep with minimal speed before stall (at least with KB). Either I am above or below.
Also, the stall should may be have the plane not just fall straight, but rather (again, easier said than done) pitch down from the nose or the back or, if in a turn, rotate around the wing (roll) while loosing pitch.
But then again, doing this is already very impressive. Congrats, :smiley:

1 Like

Thanks for your advice! I will try to add these effects to the vehicle type of fighter, which is a meaningful challenge. :grinning:

1 Like

tank transmission effect of track sub module :smiley:

1 Like

This tank is bullying this innocent fighter


[Gun stabilizer]This should be the basic equipment of modern tanks
link:Gun stabilizer - Wikipedia