Skip to content

turnvisualizer

eisclimber edited this page Apr 4, 2026 · 1 revision

TurnVisualizer

Class in ExPresSXR.Interaction.ValueRangeInteractable

Inherits from ValueVisualizer\<V\>

Summary

Defines the visualization for a turnable (door-)knob interactable.

public class TurnVisualizer : ValueVisualizer<float>

Enums

Name Description
InteractorTurnType Determines how a turn is calculated. Either by turning the controller/wrist (Forward) or by rotating around the up-axis (Direction).

Methods

Name Description
DrawGizmos(Transform,float) Reflects the state of the interactor with Gizmos.
Called automatically by ExPresSXR.Interaction.ValueRangeInteractable s in the DrawGizmosSelected()-function.
GetVisualizedValue(IXRInteractable,IXRInteractor) Calculates a new value based on the constellation of a select interactable and the interactor.
Called by a ExPresSXR.Interaction.ValueRangeInteractable automatically when updated with a grab.
UpdateVisualization(float,IXRInteractable) Updates the visualization based on the provided value.
Should be called in the setter of the Value. In classes derived from BaseValueDescriptor call this automatically.

Properties

Name Description
AngleRange The angle between the minimal and maximal angle.
FlipTurnDirection If true, inverses the turn direction.
PreviousTurnForward Forward direction of the previous update.
RawValue Raw value visualized. Ensured to be in the range between 0.0f and 1.0f (inclusive).
TurnType How turning is performed.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally