Component:LinearAngleMapper

From Resonite Wiki
This page contains changes which are not marked for translation.
Component image 
Linear Angle Mapper component as seen in the Scene Inspector

The LinearAngleMapper component is used to map a float range to a rotation range using lerp.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Source direct RelayRef`1<IValue`1<Float>> The source value field to get the source mapped value from.
Target field drive of FloatQ The rotation to drive with the mapped rotation value.
SourceMin Float The minimum value for Source for mapping.
SourceMax Float The maximum value for Source for mapping.
TargetMin Float3 The minumum rotation value when Source is at SourceMin's value.
TargetMax Float3 The maximum rotation value when Source is at SourceMax's value.
AllowReverseMapping Bool Whether changes to Target map in the reverse direction and get applied to target. See write backs.
Clamp Bool Whether to allow extrapolation of the lerped data or to keep it within the values specified.

Examples

Can be used to make an object spin as a slider is slid. Then can also be used to rotate the object that in turn affects the slider if AllowReverseMapping is enabled.

See Also