The current position of the rotary switch.
Notifies when the component is detached from the entity.
Whether the component has been initialized.
The initial position of the switch (as initially represented by the graphics) in the interval [0, positions - 1].
The IO signals provided by the rotary switch.
The component name.
The number of discrete positions.
The rotation angle per position.
The virtual world to which the owning entity belongs.
Protected OptionaladdedAdded function called immediately after the component is attached to an entity.
Creates a handle (weak reference) to a trackable object.
The type of object that is to be referenced.
The object that is initially referenced by the handle.
A handle to a trackable object.
Protected OptionalinitializeAsynchronous initialization function called immediately before simulating when the model is initialized.
OptionalpostPost-update function called after physics has been updated.
The timestep (seconds).
Protected OptionalpostAsynchronous post-update function called after physics has been updated.
The timestep (seconds).
Immediately triggers asynchronous initialization if the component hasn't already been initialized.
Subscribes to a subscribable object.
Subscriptions created through this function are automatically unsubscribed when the component is detached/removed.
The subscribable object for which to subscribe.
The callback function that is triggered when the object's value is updated.
Unsubscribes from a subscribable object.
The object from which to unsubscribe.
The callback function for the subscription.
True if the subscription was canceled, false otherwise.
OptionalupdateUpdate function called every timestep when simulating.
The timestep (seconds).
Protected OptionalupdateAsynchronous update function called every timestep when simulating.
The timestep (seconds).
A component that turns an entity into a rotary switch, allowing it to be toggled between a number of positions/angles.