Howto:3D Aircraft Models: Difference between revisions

m
m (→‎Loading the model: Updated for OSG reference)
m (→‎Animating the Model: + main article)
Line 95: Line 95:


==Animating the Model==
==Animating the Model==
{{Main article|Howto: Animate models‎‎}}
Now for the interesting part. FlightGear allows you to animate models by having parts rotate or spin in response to property changes: for example, the propellers can spin when the engine is on and the elevators can move up and down with your controller. There is no fixed limit on what parts can be animated: the only requirements are that the part is named in the 3D model file, and that there is a property in the main tree that you can use to get the positioning information.  When animating your model, it is very helpful to find an aircraft with parts similar to yours and use it as an example.  Cut and paste the code into your wrapper file and then edit to suit.  
Now for the interesting part. FlightGear allows you to animate models by having parts rotate or spin in response to property changes: for example, the propellers can spin when the engine is on and the elevators can move up and down with your controller. There is no fixed limit on what parts can be animated: the only requirements are that the part is named in the 3D model file, and that there is a property in the main tree that you can use to get the positioning information.  When animating your model, it is very helpful to find an aircraft with parts similar to yours and use it as an example.  Cut and paste the code into your wrapper file and then edit to suit.