No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
<!--T:3--> | <!--T:3--> | ||
== Usage == | == Usage == | ||
The defined <code>LocalDirection</code> will be rotated to line up with the <code>TargetDirection</code>. | |||
<!--T:4--> | <!--T:4--> |
Revision as of 04:59, 10 February 2025
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 | |
TargetDirection
|
Float3 | |
DirectionSpace
|
direct RootSpace | The coordinate space of TargetDirection
|
LocalRotation
|
FloatQ | |
_rotation
|
field drive of FloatQ |
Usage
The defined LocalDirection
will be rotated to line up with the TargetDirection
.
Examples
A common use of the AxisRotationAligner is to make a slot's upward direction always match the upward direction of root.