Howto:Implement generic tyre smoke

From FlightGear wiki
Jump to: navigation, search
Tyre smoke, as seen on a Boeing 727-230 at touchdown.

Tyre smoke often refers to the smoke that is visible when an aircraft touches down. This arises when stationary wheels hit the ground at high speeds; a little layer of rubber is burned due to the friction between the tyre and the runway.

Following this howto, you will be able to add tyre smoke when landing and spray when it is raining to your aircraft. The here explained method works with both YASim and JSBSim.

The examples below are for a 3-point-gear, but you can use more gears of course!


Create a folder in $FG ROOT/Aircraft/YourAircraft called Nasal, if not already there. Create a file called tyresmoke.nas with the following lines inside:

 #============================ Tyre Smoke ===================================, 1, 2);
 #============================ Rain ===================================
 var rain = func {
	 settimer(rain, 0);
 # == fire it up ===
 # end

Pass the indices of gears you would like to produce smoke.


At the bottom of the file, add the link to the nasal-file, between the <nasal> and </nasal> tags. Do not place them between the <sim>-tags!



Insert the following lines into the .xml file that contains your aircraft's animations, in your Models/ folder and change the ccordinates so it matches with your gear. This are examples for a 3-point-gear- it links to the Aircraft/Generic/Effects-folder.

You can create of course your own Effect-file if you want. Just regard the correct link!


Now you have tyre-smoke when landing, and spray when it is raining on your aircraft!