Interface IAnchorHandler
An interface that should be placed on components that handle anchoring events.
Namespace: Liminal.SDK.VR.Avatars.Interaction
Assembly: Liminal.SDK.dll
Syntax
public interface IAnchorHandler
Properties
| Improve this Doc View Sourceenabled
Gets or sets the enabled state of the handler.
Declaration
bool enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceModifyPosition(ref Vector3, ref Vector3)
Applies modifications to the position of the anchored object.
Declaration
void ModifyPosition(ref Vector3 current, ref Vector3 target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | current | The current position. |
UnityEngine.Vector3 | target | The target position. |
ModifyRotation(ref Quaternion, ref Quaternion)
Applies modifications to the rotation of the anchored object.
Declaration
void ModifyRotation(ref Quaternion current, ref Quaternion target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Quaternion | current | The current rotation. |
UnityEngine.Quaternion | target | The target rotation. |