Component:Spinner: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page Spinner (Component) to Component:Spinner: Creating component Namespace
Add info
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
|Name=Spinner
|Name=Spinner
}}
}}
Spinner is a component that is used to make something rotate on 1 or more axies a constant rate.


== Fields == <!--T:2-->
== Fields == <!--T:2-->
{{Table ComponentFields
{{Table ComponentFields
|Range|Float3|
|Range|Float3| how much each axis can go up to from 0 before wrapping around.
|_target|IField`1|TypeString1=IField<floatQ>|
|_target|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv1=true| The rotation field to spin.
|_offset|FloatQ|
|_offset|FloatQ| the offset rotation to start at world start from.
|_speed|Float3|
|_speed|Float3| how fast to rotate on each axis. Negative values go in reverse.
}}
}}


Line 23: Line 24:
== Related Components == <!--T:5-->
== Related Components == <!--T:5-->
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Spinner]]
[[Category:Components{{#translation:}}|Spinner]]
[[Category:Components:Transform:Drivers{{#translation:}}|Spinner]]
[[Category:Components:Transform:Drivers{{#translation:}}|Spinner]]

Latest revision as of 18:25, 26 October 2024


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


Component image 
Spinner component as seen in the Scene Inspector

Spinner is a component that is used to make something rotate on 1 or more axies a constant rate.

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.
Range Float3 how much each axis can go up to from 0 before wrapping around.
_target field drive of FloatQ The rotation field to spin.
_offset FloatQ the offset rotation to start at world start from.
_speed Float3 how fast to rotate on each axis. Negative values go in reverse.

Usage

Examples

Related Components