UxrTeleportLocomotionBase.IsValidTeleport Method
Checks if the teleport position is valid.
Namespace: UltimateXR.Locomotion
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
protected bool IsValidTeleport(
bool checkBlockingInBetween,
ref Vector3 newPosition,
Vector3 hitNormal,
out bool isValidSlope
)
Parameters
- checkBlockingInBetween
- Type: System.Boolean
Should it check for blocking elements in a straight line from the current position to the new position? - newPosition
- Type: Vector3
Teleport position. If should passed as reference because it may have slight corrections - hitNormal
- Type: Vector3
The hit normal that generated the teleport position candidate - isValidSlope
- Type: System.Boolean
Returns a boolean telling if the slope at the destination is valid or not
Return Value
Type: Boolean
Boolean telling whether the new position is a valid teleport destination or not
See Also
Reference
UxrTeleportLocomotionBase Class
UltimateXR.Locomotion Namespace