joystickvisualizer - eisclimber/ExPresS-XR GitHub Wiki

JoystickVisualizer

Class in ExPresSXR.Interaction.ValueRangeInteractable

Inherits from ValueVisualizer\<V\>

Summary

Defines the visualization for a joystick interactable.

public class JoystickVisualizer : ValueVisualizer<Vector2>

Methods

Name Description
DrawGizmos(Transform,Vector2) 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(Vector2,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 Maximal angle to lean the joystick in any direction from the center.
⚠️ **GitHub.com Fallback** ⚠️