1
0
Fork 0

make slewProp(), and with it {aileron,elevator,rudder}Trim return new value

This commit is contained in:
mfranz 2008-09-30 18:11:46 +00:00
parent f5babfe796
commit b1a3428bd8

View file

@ -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