Guides
Guides
These docs are for v3.1.0. Click to read the latest docs for v3.3.0.

VRTK_SlideObjectControlAction

extends VRTK_BaseObjectControlAction

Overview

The Slide Object Control Action script is used to slide the controlled GameObject around the scene when changing the axis.

The effect is a smooth sliding motion in forward and sideways directions to simulate walking.

Inspector Parameters

  • Maximum Speed: The maximum speed the controlled object can be moved in based on the position of the axis.
  • Deceleration: The rate of speed deceleration when the axis is no longer being changed.
  • Falling Deceleration: The rate of speed deceleration when the axis is no longer being changed and the object is falling.
  • Speed Multiplier: The speed multiplier to be applied when the modifier button is pressed.

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 Slide Object Control Action, ensure one of the TouchpadControlOptions children (located under the Controller script alias) has the Slide control script active.