482
edits
(→Configuration File Format:: Explanation of damping_coeff and linear vs square.) |
(→Additional Parameter: Relaxation Velocity: Added info on strut_force parameter) |
||
Line 83: | Line 83: | ||
</relaxation_velocity> | </relaxation_velocity> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
According to Jon Berndt ([http://permalink.gmane.org/gmane.games.flightgear.devel/41836 here]), "This turns off the fade-in/out for forces at near-zero or zero velocity." Normally this would not be set to 0, as in this example | According to Jon Berndt ([http://permalink.gmane.org/gmane.games.flightgear.devel/41836 here]), "This turns off the fade-in/out for forces at near-zero or zero velocity." Normally this would not be set to 0, as in this example. | ||
===Additional function: Strut Force=== | |||
JSBSim now allows inclusion of an arbitrary table or function to calculate strut force, rather than using JSBSim's built-in functions to calculate forces and damping on a contact point. This should be operational in Flightgear 2.8 and forward. Include a section like this within your contact definition: | |||
<syntaxhighlight> | |||
<strut_force> | |||
<function> | |||
<sum> | |||
<product> | |||
<value> 180000000 </value> | |||
<property> gear/unit[0]/compression-ft </property> | |||
</product> | |||
<ifthen> | |||
<ge> | |||
<property> gear/unit[2]/compression-velocity-fps </property> | |||
<value> 0.0 </value> | |||
</ge> | |||
<product> | |||
<value> -160. </value> | |||
<property> gear/unit[2]/compression-velocity-fps </property> | |||
</product> | |||
<product> | |||
<value> -320. </value> | |||
<property> gear/unit[2]/compression-velocity-fps </property> | |||
</product> | |||
</ifthen> | |||
</sum> | |||
</function> | |||
</strut_force> | |||
</syntaxhighlight> | |||
[http://forum.flightgear.org/viewtopic.php?f=49&t=20599 More information and example usage here.] | |||
===Other resources=== | ===Other resources=== |
edits