VRTK_HeightAdjustTeleport
extends VRTK_BasicTeleport
Overview
The height adjust teleporter extends the basic teleporter and allows for the y position of the user's position to be altered based on whether the teleport location is on top of another object.
Inspector Parameters
- Snap To Nearest Floor: If this is checked, then the teleported Y position will snap to the nearest available below floor. If it is unchecked, then the teleported Y position will be where ever the destination Y position is.
- Custom Raycast: A custom raycaster to use when raycasting to find floors.
Example
VRTK/Examples/007_CameraRig_HeightAdjustTeleport
has a collection of varying height objects that the user can either walk up and down or use the laser pointer to climb on top of them.
VRTK/Examples/010_CameraRig_TerrainTeleporting
shows how the teleportation of a user can also traverse terrain colliders.
VRTK/Examples/020_CameraRig_MeshTeleporting
shows how the teleportation of a user can also traverse mesh colliders.
Updated less than a minute ago