Howto:Animate canopy or doors: Difference between revisions

Jump to navigation Jump to search
m
Added link to nasal implementation for further reference
(add link)
m (Added link to nasal implementation for further reference)
 
Line 1: Line 1:
Example: A canopy
==Nasal implementation==
The default door implementation features simple door movement.
It also supports advanced features like init with positions other than "closed", as well as transition methods for arbitary movement.
See [https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/Nasal/aircraft.nas FGDATA Nasal/aircraft.nas]
 
==Example: A canopy==


Create a canopy object that uses the method in aircraft.door for animation.
Create a canopy object that uses the method in aircraft.door for animation.
Line 41: Line 46:
</syntaxhighlight>
</syntaxhighlight>
The Nasal code runs the toggle method of object canopy created above.
The Nasal code runs the toggle method of object canopy created above.


[[Category:Aircraft enhancement|Animate models]]
[[Category:Aircraft enhancement|Animate models]]
[[Category:Howto|Animate models]]
[[Category:Howto|Animate models]]
[[Category:Modeling|Animate models]]
[[Category:Modeling|Animate models]]
624

edits

Navigation menu