Analog Instruments

From Outerra
Jump to navigation Jump to search

Airspeed Indicator[edit | edit source]

Method Parameters Description Example of use
instrument_analog_asi bone Object's name you want to animate. bone: 'my_object'
axis Axis of rotation. axis: {y:1}
min Minimum rotation angle in Degrees. min: 0
max Maximum rotation angle in Degrees. max: 180
units Indicated units. 'kts' or 'kph'. units: 'kts'
factor Needs description. factor: 100
table Interpolation table. table: [0.0, 90.0, 180.0]

Script Example:[edit | edit source]

instrument_analog_asi({
	bone: 'asi_needle_fwd', 
	axis: {y:1}, 
	min: 0,	
	max: 360, 
	units: 'kts', 
	factor: 10, 
	table: [0.0, 3.38, 6.76, 10.14, 13.52, 16.9, 34.9, 52.6, 70.9, 90.8, 107.3, 126.9, 144.7, 
	162.3, 180.5, 198.1, 216.0, 234.3, 252.2, 270.2, 289.0]
});


Altitude Indicator[edit | edit source]

Method Parameters Description Example of use
instrument_analog_alt bone Object's name you want to animate. bone: 'my_object'
axis Axis of rotation. axis: {y:1}
min Minimum rotation angle in Degrees. min: 0
max Maximum rotation angle in Degrees. max: 180
units Indicated units. 'ft' or 'km'. units: 'km'
factor Needs description. factor: 100
table Interpolation table. table: [0.0, 90.0, 180.0]

Script Example:[edit | edit source]

instrument_analog_alt({
	bone: 'alt_needle_fwd', 
	axis: {y:1}, 
	min: 0,	
	max: 360, 
	units: 'km', 
	factor: 1, 
	table: [0.0, 70.2, 143.7, 215.0, 289.0, 360.0]
});


Clock[edit | edit source]

Method Parameters Description Example of use
instrument_analog_clock bone Object's name you want to animate. bone: 'my_object'
axis Axis of rotation. axis: {y:1}
input_ms Time input in miliseconds. input_ms: this.solar_time().time
units Indicated units. 'hours', 'minutes' or 'seconds'. units: 'hours'

Script Example:[edit | edit source]

instrument_analog_clock({
	bone: 'clock_needle_hours_fwd', 
	axis: {y:1}, 
	input_ms: this.solar_time().time, 
	units: 'hours'
});


Compass[edit | edit source]

Method Parameters Description Example of use
instrument_analog_compass bone Object's name you want to animate. bone: 'my_object'
axis Axis of rotation. axis: {y:1}

Script Example:[edit | edit source]

instrument_analog_compass({
	bone:'compass_ring', 
	axis:{z:1}
});


Vertical Speed Indicator (VSI)[edit | edit source]

Method Parameters Description Example of use
instrument_analog_vsi bone Object's name you want to animate. bone: 'my_object'
axis Axis of rotation. axis: {y:1}
min Minimum rotation angle in Degrees. min: 0
max Maximum rotation angle in Degrees. max: 180
units Indicated units. 'fps' or 'mps'. units: 'kts'
factor Needs description. factor: 100
table Interpolation table. table: [0.0, 90.0, 180.0]

Script Example:[edit | edit source]

instrument_analog_vsi({
	bone:'vsi_needle_fwd', 
	axis:{y:-1}, 
	min:-180, 
	max:180, 
	units:'mps', 
	factor:12, 
	table:[0.0, 180.0]
});


More Information[edit | edit source]

Understanding factor and table parameters[edit | edit source]

... pending to be written


The Functions

  The Functions