objectspinner - eisclimber/ExPresS-XR GitHub Wiki

ObjectSpinner

Class in ExPresSXR.Misc

Inherits from UnityEngine.MonoBehaviour

Summary

Spins an objects automatically around an axis.

public class ObjectSpinner : MonoBehaviour

Methods

Name Description
Configure(float,Vector3,bool) Configures the rotation axis and rotation.
RandomizeRotation() Randomizes current the rotation around RotationAxis.

Properties

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.
⚠️ **GitHub.com Fallback** ⚠️