(Redirected from AxisRotationAligner (Component))
This article or section is a stub. You can help the Resonite wiki by expanding it.
Component image 
Axis Rotation Aligner component as seen in the Scene Inspector 

The AxisRotationAligner can be used to keep a slot facing a direction relative to a space.
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. | 
| LocalDirection | Float3 | A vector direction in this slot's local space to align to TargetDirectionvia rotating this slot. | 
| TargetDirection | Float3 | The direction vector to align to. | 
| DirectionSpace | direct RootSpace | The coordinate space that TargetDirectionis in. | 
| LocalRotation | FloatQ | A rotation offset to the alignment. | 
| _rotation | field drive of FloatQ | The rotation field of the slot this component is on. Is driven to do the rotation alignment. | 
Usage
The defined LocalDirection will be rotated to line up with the TargetDirection inside DirectionSpace's coordinate space.
Examples
A common use of the AxisRotationAligner is to make a slot's upward direction always match the upward direction of root.
