(One intermediate revision by the same user not shown)
Line 7:
Line 7:
|Name=Linear Mapper 3D
|Name=Linear Mapper 3D
}}
}}
Linear Mapper 3D is a component that draws a line from <code>TargetMin</code> and <code>TargetMax</code> and uses a linear range between the two to map Source to a range between <code>SourceMin</code> and <code>SourceMax</code>.
Linear Mapper 3D is a component that draws a line from <code>TargetMin</code> and <code>TargetMax</code> and uses a linear range between the two with <code>Target</code> to map <code>Source</code> to a range between <code>SourceMin</code> and <code>SourceMax</code>.
<!--T:2-->
<!--T:2-->
Line 18:
Line 18:
|TargetMin|Float3| The minimum of the range of the <code>Target</code> value.
|TargetMin|Float3| The minimum of the range of the <code>Target</code> value.
|TargetMax|Float3| The maximum of the range of the <code>Target</code> value.
|TargetMax|Float3| The maximum of the range of the <code>Target</code> value.
|AllowReverseMapping|Bool| Allow <code>Target</code> to map it's value to <code>Source</code>'s ranged value when written to.
|AllowReverseMapping|Bool| Allow <code>Target</code> to map it's value to <code>Source</code>'s ranged value when written to. See [[Drives#Write Backs|write backs]].
|Clamp|Bool| Whether to prevent <code>Source</code> and <code>Target</code> from going outside their defined ranges.
|Clamp|Bool| Whether to prevent <code>Source</code> and <code>Target</code> from going outside their defined ranges.
Linear Mapper 3D is a component that draws a line from TargetMin and TargetMax and uses a linear range between the two with Target to map Source to a range between SourceMin and SourceMax.