No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
<!--T:4--> | <!--T:4--> | ||
== Examples == | == Examples == | ||
A common use of the '''AxisRotationAligner''' is to make a slot's upward direction always match the upward direction of root. | |||
<!--T:5--> | <!--T:5--> |
Revision as of 04:54, 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
Examples
A common use of the AxisRotationAligner is to make a slot's upward direction always match the upward direction of root.