UxrTeleportLocomotionBase.HasBlockingRaycastHit Method
Checks whether the given raycast hits have any that are blocking. A blocking raycast can either be a valid or invalid teleport destination depending on many factors. Use IsValidDestination(Vector3, Vector3, Boolean) to check whether the given position is valid. This method filters out invalid raycasts such as against anything part of an avatar or a grabbed object.
Namespace: UltimateXR.Locomotion
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
protected bool HasBlockingRaycastHit(
Vector3 origin,
Vector3 direction,
float maxDistance,
out RaycastHit outputHit
)
Parameters
- origin
- Type: Vector3
Ray origin - direction
- Type: Vector3
Ray direction - maxDistance
- Type: System.Single
Raycast maximum distance - outputHit
- Type: RaycastHit
Result blocking raycast
Return Value
Type: Boolean
Whether there is a blocking raycast returned in outputHit
See Also
Reference
UxrTeleportLocomotionBase Class
UltimateXR.Locomotion Namespace