UxrAvatar.IsLookingAt Method

Checks if the avatar is looking at a point in space.

Namespace: UltimateXR.Avatar
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public bool IsLookingAt(
	Vector3 worldPosition,
	float radiusFromViewportCenterAllowed
)

Parameters

 

worldPosition
Type: Vector3
World position to check.
radiusFromViewportCenterAllowed
Type: System.Single
Radius threshold in viewport coordinates [0.0, 1.0] above which it isn’t considered looking at anymore.

Return Value

Type: Boolean
Whether the avatar is looking at the specific point in space.

See Also

Reference

UxrAvatar Class
UltimateXR.Avatar Namespace