objectspinner - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Misc
Inherits from UnityEngine.MonoBehaviour
Spins an objects automatically around an axis.
public class ObjectSpinner : MonoBehaviour| Name | Description |
|---|---|
| Configure(float,Vector3,bool) | Configures the rotation axis and rotation. |
| RandomizeRotation() | Randomizes current the rotation around RotationAxis. |
| Name | Description |
|---|---|
| Paused | If rotation is paused. |
| RandomRotationOnAwake | If the rotation around RotationAxis should be automatically randomized on awake. |
| RotationAxis | Axis of rotation. |
| Speed | Speed of the rotation. |