make slewProp(), and with it {aileron,elevator,rudder}Trim return new value
This commit is contained in:
parent
f5babfe796
commit
b1a3428bd8
1 changed files with 3 additions and 2 deletions
|
@ -162,11 +162,12 @@ var stepProps = func {
|
||||||
# a rate, in units per second. NOTE: this modifies the property for
|
# a rate, in units per second. NOTE: this modifies the property for
|
||||||
# the current frame only; it is intended to be called by bindings
|
# the current frame only; it is intended to be called by bindings
|
||||||
# which repeat each frame. If you want to cause motion over time, see
|
# which repeat each frame. If you want to cause motion over time, see
|
||||||
# interpolate().
|
# interpolate(). Returns new value.
|
||||||
#
|
#
|
||||||
var slewProp = func(prop, delta) {
|
var slewProp = func(prop, delta) {
|
||||||
delta *= getprop("/sim/time/delta-realtime-sec");
|
delta *= getprop("/sim/time/delta-realtime-sec");
|
||||||
setprop(prop, getprop(prop) + delta);
|
setprop(prop, var val = getprop(prop) + delta);
|
||||||
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Standard trim rate, in units per second. Remember that the full
|
# Standard trim rate, in units per second. Remember that the full
|
||||||
|
|
Loading…
Add table
Reference in a new issue