HandlingSetSuspensionFrontRearBias: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server function}} ==Syntax== <syntaxhighlight lang="lua"> </syntaxhighlight> ===Required Arguments=== ===Returns=== ==Example== <syntaxhighlight lang="lua"> --TODO </syntaxhighlight> ==See Also== {{Handling_functions}}) |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | {{Server function}} | ||
Sets the suspension bias of a handling element. This determines the suspension force distribution over the front and back wheels. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool handlingSetSuspensionFrontRearBias ( handling theHandling, float bias ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theHandling:''' the handling of which you want to change the suspension bias. | |||
*'''bias:''' A value between 0 and 1. At 0, the back wheels have all the suspension and the front wheels have none. At 1, the front wheels have suspension and the back wheels have none. With a value of 0.5, all wheels have the same suspension power. | |||
===Returns=== | ===Returns=== | ||
Returns ''true'' on success, ''false'' in case of failure. | |||
==Example== | ==Example== |
Latest revision as of 22:53, 27 March 2008
Sets the suspension bias of a handling element. This determines the suspension force distribution over the front and back wheels.
Syntax
bool handlingSetSuspensionFrontRearBias ( handling theHandling, float bias )
Required Arguments
- theHandling: the handling of which you want to change the suspension bias.
- bias: A value between 0 and 1. At 0, the back wheels have all the suspension and the front wheels have none. At 1, the front wheels have suspension and the back wheels have none. With a value of 0.5, all wheels have the same suspension power.
Returns
Returns true on success, false in case of failure.
Example
--TODO