UxrTeleportLocomotionBase.NotifyDestinationRaycast Method

Notifies a raycast was selected to be a potential destination. Computes whether the destination is valid. If it is, sets the appropriate internal state that can later be executed using TryTeleportUsingCurrentTarget().

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

Syntax

C#

protected bool NotifyDestinationRaycast(
	RaycastHit hit,
	bool checkBlockingInBetween
)

Parameters

 

hit
Type: RaycastHit
Raycast that will be processed as a potential teleport destination
checkBlockingInBetween
Type: System.Boolean
Should it check for blocking elements in a straight line from the current position to the new position?

Return Value

Type: Boolean
Whether the destination is a valid teleport location

See Also

Reference

UxrTeleportLocomotionBase Class
UltimateXR.Locomotion Namespace