Component:SphereAligner: Difference between revisions

From Resonite Wiki
Automated: update Fields, Categories
add info
 
Line 7: Line 7:
|Name=Sphere Aligner
|Name=Sphere Aligner
}}
}}
Sphere aligner is a component that has a list of child slots under <code>Items</code> and aligns those items into a spherical shape.


<!--T:2-->
<!--T:2-->
Line 12: Line 13:
{{Table ComponentFields
{{Table ComponentFields
|AutoAddChildren|Bool| Controls whether slots below this component's slot in the hierarchy are automatically added to <code>_targets</code>
|AutoAddChildren|Bool| Controls whether slots below this component's slot in the hierarchy are automatically added to <code>_targets</code>
|Radius|Float|
|Radius|Float| The radius of the sphere to align items into
|DistributionOffset|Float|
|DistributionOffset|Float| Shift the positions of the items along the sphere surface, redistributes.
|AlignToNormal|Bool|
|AlignToNormal|Bool| Whether to rotate the items to align them to the surface of the sphere
|RotationOffset|FloatQ|
|RotationOffset|FloatQ| How much to rotate the sphere of aligned items by their individual origins
|NormalizedStart|Float|
|NormalizedStart|Float| What point to start the alignment of items from top to bottom of the sphere.
|NormalizedEnd|Float|
|NormalizedEnd|Float| What point to end the alignment of items from top to bottom of the sphere.
|HorizontalStart|Float|
|HorizontalStart|Float| What point to start the alignment of items along the equator of the sphere.
|HorizontalEnd|Float|
|HorizontalEnd|Float| What point to end the alignment of items along the equator of the sphere.
|Items|{{RootFieldType|SyncList`1|[[#Item|Item]]}}|TypeAdv9=true|
|Items|{{RootFieldType|SyncList`1|[[#Item|Item]]}}|TypeAdv9=true| A list of items to align into the sphere shape.
}}
}}


Line 33: Line 34:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Sphere Aligner]]
[[Category:Components{{#translation:}}|Sphere Aligner]]
[[Category:Components With Nested Types{{#translation:}}|Sphere Aligner]]
[[Category:Components With Nested Types{{#translation:}}|Sphere Aligner]]
[[Category:Components:Transform:Drivers{{#translation:}}|Sphere Aligner]]
[[Category:Components:Transform:Drivers{{#translation:}}|Sphere Aligner]]

Latest revision as of 18:02, 26 October 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
Sphere Aligner component as seen in the Scene Inspector

Sphere aligner is a component that has a list of child slots under Items and aligns those items into a spherical shape.

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.
AutoAddChildren Bool Controls whether slots below this component's slot in the hierarchy are automatically added to _targets
Radius Float The radius of the sphere to align items into
DistributionOffset Float Shift the positions of the items along the sphere surface, redistributes.
AlignToNormal Bool Whether to rotate the items to align them to the surface of the sphere
RotationOffset FloatQ How much to rotate the sphere of aligned items by their individual origins
NormalizedStart Float What point to start the alignment of items from top to bottom of the sphere.
NormalizedEnd Float What point to end the alignment of items from top to bottom of the sphere.
HorizontalStart Float What point to start the alignment of items along the equator of the sphere.
HorizontalEnd Float What point to end the alignment of items along the equator of the sphere.
Items list of Item A list of items to align into the sphere shape.

Usage

Examples

Related Components