API reference
API reference
Select your platform
No SDKs available
No versions available

JoystickPoseMovementProvider Class

Extends MonoBehaviour
Provides a movement provider that uses joystick input to control the movement and rotation of an Interactable<TInteractor,TInteractable> object.
This can be useful for examining an object up close and from different angles. This class is designed to work with an IInteractableView view which is used to access the last selecting controller via the respective IInteractorView. This movement provider allows developers to customize the movement speed, rotation speed, and distance constraints of the Interactable<TInteractor,TInteractable> object.

Properties

MaxDistance : float
[Get][Set]
Gets or sets the maximum distance along the Z-axis for the grabbed object.
This value must be greater than or equal to the minimum distance.
Signature
float Oculus.Interaction.JoystickPoseMovementProvider.MaxDistance
MinDistance : float
[Get][Set]
Gets or sets the minimum distance along the Z-axis for the grabbed object.
This value must be greater than or equal to 0.
Signature
float Oculus.Interaction.JoystickPoseMovementProvider.MinDistance
MoveSpeed : float
[Get][Set]
Gets or sets the speed at which movement occurs.
A higher value will result in faster movement.
Signature
float Oculus.Interaction.JoystickPoseMovementProvider.MoveSpeed
RotationSpeed : float
[Get][Set]
Gets or sets the speed at which rotation occurs.
A higher value will result in faster rotation.
Signature
float Oculus.Interaction.JoystickPoseMovementProvider.RotationSpeed

Methods

CreateMovement ()
Creates a new movement instance that uses joystick input to control the position and rotation of an object.
The movement instance is created with the specified movement speed, rotation speed, minimum distance, and maximum distance.
Signature
IMovement Oculus.Interaction.JoystickPoseMovementProvider.CreateMovement()
Returns
IMovement  A new movement instance that can be used to control the position and rotation of an object.