- Messages
- 10,163
- Country

Hey all,
I am trying to figure out what exactly controls the up/down order for a draggable mouse control on a lever.
This is the one I am working one. It is the stock 'part' Gmax code for the prop pitch lever control. It drags downwards 'first' and upwards second. On my lever, it animates in the opposite direction.
Code;
Question one; what does 'Bias' stand for in this case;
<bias>100.0</bias>
Would this mean 'starting point' on the animation track?
///////////////////////////////////////////////////////
Question two; how does the scale functionality work?
<scale>163.84</scale>
///////////////////////////////////////////////////////
Question three; How would you reverse the mouse drag 'direction'? Would it be in flipping the 'scale' and 'y-scale' or the min/max value?
<scale>163.84</scale>
<yscale>-163.84</yscale>
<minvalue>0</minvalue>
<maxvalue>16384</maxvalue>
Question four; What does the 'scale' section in the top 'animation' section refer or command? Does this 'reverse' the animation or...?
<scale>-1.0</scale>
Many thanks,
Bill
I am trying to figure out what exactly controls the up/down order for a draggable mouse control on a lever.
This is the one I am working one. It is the stock 'part' Gmax code for the prop pitch lever control. It drags downwards 'first' and upwards second. On my lever, it animates in the opposite direction.
Code;
Code:
<part>
<name>lever_prop_pitch</name>
<animation>
<parameter>
<sim>
<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
<units>percent</units>
<scale>-1.0</scale>
<bias>100.0</bias>
</sim>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<help_id>HELPID_GAUGE_THROTTLE_PROP</help_id>
<tooltip_id>TOOLTIPTEXT_THROTTLE_PROPELLER_PERCENT</tooltip_id>
<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
<callback_dragging>
<variable>GENERAL ENG PROPELLER LEVER POSITION:1</variable>
<units>percent</units>
<scale>163.84</scale>
<yscale>-163.84</yscale>
<minvalue>0</minvalue>
<maxvalue>16384</maxvalue>
<event_id>PROP_PITCH1_SET</event_id>
</callback_dragging>
</mouserect>
</part>
Question one; what does 'Bias' stand for in this case;
<bias>100.0</bias>
Would this mean 'starting point' on the animation track?
///////////////////////////////////////////////////////
Question two; how does the scale functionality work?
<scale>163.84</scale>
///////////////////////////////////////////////////////
Question three; How would you reverse the mouse drag 'direction'? Would it be in flipping the 'scale' and 'y-scale' or the min/max value?
<scale>163.84</scale>
<yscale>-163.84</yscale>
<minvalue>0</minvalue>
<maxvalue>16384</maxvalue>
Question four; What does the 'scale' section in the top 'animation' section refer or command? Does this 'reverse' the animation or...?
<scale>-1.0</scale>
Many thanks,
Bill
Last edited:
