Skip to main content
Version: 2.2.0

Haply::Inverse::Unity::VerseGripCursor

Cursor behaviour that updates its rotation based on a VerseGrip device's orientation.

Inherits from Haply.Inverse.Unity.CursorBehaviour, MonoBehaviour

Protected Functions

Name
override voidUpdateCursor()
Updates the cursor's rotation based on the VerseGrip device's orientation.

Public Attributes

Name
booluseDeviceLocalSpace
floatrotationSmoothness

Additional inherited members

Protected Functions inherited from Haply.Inverse.Unity.CursorBehaviour

Name
virtual voidAddDeviceListeners()
Adds listeners to the device.
virtual voidRemoveDeviceListeners()
Removes listeners from the device.
virtual GameObjectGetModelPrefab()
Gets the prefab that should be instantiated upon startup.
virtual voidAwake()
virtual voidOnEnable()
voidUpdate()
voidFixedUpdate()

Public Properties inherited from Haply.Inverse.Unity.CursorBehaviour

Name
DeviceBehaviourDevice
Device that controls the cursor.
TransformModelPrefab
The prefab of a cursor model to show for this cursor that this behaviour automatically instantiates.
TransformModelParent
The transform that this behaviour uses as the parent for the model prefab when it is instantiated.
TransformModel
The instance of the cursor model in the scene.
boolHideControllerModel
Whether to hide the cursor model.
floatRadius
Gets the Model radius.

Protected Properties inherited from Haply.Inverse.Unity.CursorBehaviour

Name
boolIsDeviceSet
Indicates whether the Device has been set.
boolIsUpdateCursorRequired
Indicates whether the UpdateCursor must be called on next FixedUpdate call.

Protected Functions Documentation

function UpdateCursor

override void UpdateCursor()

Updates the cursor's rotation based on the VerseGrip device's orientation.

Public Attributes Documentation

variable useDeviceLocalSpace

bool useDeviceLocalSpace;

variable rotationSmoothness

float rotationSmoothness;