Class ARRotationInteractable
Manipulates the rotation of an object via a drag or a twist gesture. If an object is selected, then dragging along the horizontal axis or performing a twist gesture will rotate along the y-axis of the item.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AR
Syntax
public class ARRotationInteractable : ARBaseGestureInteractable
Properties
rotationRateDegreesDrag
The rate at which to rotate object with a drag.
Declaration
public float rotationRateDegreesDrag { get; set; }
Property Value
Type | Description |
---|---|
Single |
rotationRateDegreesTwist
The rate at which to rotate object with a twist.
Declaration
public float rotationRateDegreesTwist { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
CanStartManipulationForGesture(DragGesture)
Determines if the manipulation can be started for the given gesture.
Declaration
protected override bool CanStartManipulationForGesture(DragGesture gesture)
Parameters
Type | Name | Description |
---|---|---|
DragGesture | gesture | The current gesture. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the manipulation can be started. Otherwise, returns false. |
Overrides
CanStartManipulationForGesture(TwistGesture)
Determines if the manipulation can be started for the given gesture.
Declaration
protected override bool CanStartManipulationForGesture(TwistGesture gesture)
Parameters
Type | Name | Description |
---|---|---|
TwistGesture | gesture | The current gesture. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the manipulation can be started. Otherwise, returns false. |
Overrides
OnContinueManipulation(DragGesture)
Rotates the object around the y-axis via a Drag gesture.
Declaration
protected override void OnContinueManipulation(DragGesture gesture)
Parameters
Type | Name | Description |
---|---|---|
DragGesture | gesture | The current drag gesture. |
Overrides
See Also
OnContinueManipulation(TwistGesture)
Rotates the object around the y-axis via a Twist gesture.
Declaration
protected override void OnContinueManipulation(TwistGesture gesture)
Parameters
Type | Name | Description |
---|---|---|
TwistGesture | gesture | The current twist gesture. |