Spinner is a component that is used to make something rotate on 1 or more axies a constant rate.
The '''Spinner''' component is used to make something rotate on 1 or more axis at a constant rate.
== Fields == <!--T:2-->
== Fields == <!--T:2-->
Line 14:
Line 14:
|_target|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv1=true| The rotation field to spin.
|_target|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv1=true| The rotation field to spin.
|_offset|FloatQ| the offset rotation to start at world start from.
|_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.
|_speed|Float3| how fast to rotate on each axis, in Degrees per Second. Negative values go in reverse.
}}
}}
== Usage == <!--T:3-->
== Usage == <!--T:3-->
Note: While this component works very well for fixed or discrete speed steps, it might not behave as expected when the speed field is continuously changing, even a very small change can cause the component to 'jerk' on each change.
If you want to make something speed up or slow down smoothly, one option is to use rotational maths to recreate this component in flux, for example using [[ProtoFlux:AxisAngle]]
== Examples == <!--T:4-->
== Examples == <!--T:4-->
* [https://www.youtube.com/watch?v=VKEzfQLNtqs Spinner tutorial] by [[User:ProbablePrime|ProbablePrime]]
Spinner tutorial by [[User:ProbablePrime|ProbablePrime]].
<youtube>VKEzfQLNtqs</youtube>
== Related Components == <!--T:5-->
== Related Components == <!--T:5-->
Latest revision as of 09:08, 26 November 2025
This article or section is a stub. You can help the Resonite wiki by expanding it.
how fast to rotate on each axis, in Degrees per Second. Negative values go in reverse.
Usage
Note: While this component works very well for fixed or discrete speed steps, it might not behave as expected when the speed field is continuously changing, even a very small change can cause the component to 'jerk' on each change.
If you want to make something speed up or slow down smoothly, one option is to use rotational maths to recreate this component in flux, for example using ProtoFlux:AxisAngle