Math remap: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| mNo edit summary | m (ep1 add) | ||
| Line 13: | Line 13: | ||
| *'''out2''' <integer>   | *'''out2''' <integer>   | ||
| :When the input value is equal to 'Maximum Valid Input Value' ('''in2'''), this is the output value. | :When the input value is equal to 'Maximum Valid Input Value' ('''in2'''), this is the output value. | ||
| *{{kv enabledisable ep1}} | |||
| ==Flags== | ==Flags== | ||
| *1 : Ignore out of range input values | *1 : Ignore out of range input values | ||
| Line 21: | Line 21: | ||
| *'''InValue''' <float>   | *'''InValue''' <float>   | ||
| :Input value and fire the output with the remapped value. | :Input value and fire the output with the remapped value. | ||
| *{{i enabledisable ep1}} | |||
| ==Outputs== | ==Outputs== | ||
| *{{o targetname}} | *{{o targetname}} | ||
Revision as of 16:05, 5 August 2006
Entity Description
An entity that remaps a range of input values to a given range of output values.
Keyvalues
- Template:Kv targetname
- in1 <integer>
- Input values below this value will be ignored.
- in2 <integer>
- Input values above this value will be ignored.
- out1 <integer>
- When the input value is equal to 'Minimum Valid Input Value' (in1), this is the output value.
- out2 <integer>
- When the input value is equal to 'Maximum Valid Input Value' (in2), this is the output value.
Flags
- 1 : Ignore out of range input values
Inputs
- Template:I targetname
- InValue <float>
- Input value and fire the output with the remapped value.
Outputs
- Template:O targetname
- OutValue <float>
- Fired when the InValue input is received, with the remapped input value as the parameter.