VRTK_WarpObjectControlAction
extends VRTK_BaseObjectControlAction
Overview
The Warp Object Control Action script is used to warp the controlled GameObject a given distance when changing the axis.
The effect is a immediate snap to a new position in the given direction.
Inspector Parameters
- Warp Distance: The distance to warp in the facing direction.
- Warp Multiplier: The multiplier to be applied to the warp when the modifier button is pressed.
- Warp Delay: The amount of time required to pass before another warp can be carried out.
- Floor Height Tolerance: The height different in floor allowed to be a valid warp.
- Blink Transition Speed: The speed for the headset to fade out and back in. Having a blink between warps can reduce nausia.
Example
VRTK/Examples/017_CameraRig_TouchpadWalking
has a collection of walls and slopes that can be traversed by the user with the touchpad. There is also an area that can only be traversed if the user is crouching.
To enable the Warp Object Control Action, ensure one of the TouchpadControlOptions
children (located under the Controller script alias) has the Warp
control script active.
Updated less than a minute ago