Controls how the items should align themselves along the axis specified by the component.
Controls how the items should align themselves along the axis specified by the component.
{{Table EnumValues
{{Table EnumValues
|Neg|?| Aligns items so their values are always negative along the specified alignment axis (so if using x axis, x will always be negative for an item)
|Neg|0| Aligns items so their values are always negative along the specified alignment axis (so if using x axis, x will always be negative for an item)
|Pos|?| Aligns items so their values are always positive along the specified alignment axis (so if using x axis, x will always be positive for an item)
|Mid|1| Aligns items so half are on the negative and half are on the positive along an axis, so they take up both directions equally.
|Mid|?| Aligns items so half are on the negative and half are on the positive along an axis, so they take up both directions equally.
|Pos|2| Aligns items so their values are always positive along the specified alignment axis (so if using x axis, x will always be positive for an item)
}}
}}
Line 34:
Line 34:
{{stub}}
{{stub}}
{{Table EnumValues
{{Table EnumValues
|Xpos|0| Align items along the positive x axis.
|Xneg|1| Align items along the negative x axis.
|Ypos|2| Align items along the positive y axis.
|Yneg|3| Align items along the negative y axis.
|Zpos|4| Align items along the positive z axis.
|Zneg|5| Align items along the negative z axis.
}}
}}
== Item ==
== Item ==
{{stub}}
{{Table TypeFields
{{Table TypeFields
|Root|Slot| The slot to align.
|PositionDrive|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv1=true| The position field of <code>Root</code>.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Can be used for aligning tiles, shelves, boxes, or anything that needs consistent alignment.