Provides the ability to rotate a GameObject through the world
y axis in the scene by updating the Transform rotation when the corresponding Object Control axis changes.
The effect is a smooth rotation to simulate turning.
VRTK_ObjectControl- The Object Control script to listen for the axis changes on.
- Place the
VRTK_RotateObjectControlActionscript on any active scene GameObject.
- Link the required Object Control script to the
Object Control Scriptparameter of this script.
- Set the
Listen On Axis Changeparameter on this script to the axis change to affect with this movement type.
- Maximum Rotation Speed: The maximum speed the controlled object can be rotated based on the position of the axis.
- Rotation Multiplier: The rotation multiplier to be applied when the modifier button is pressed.
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 Rotate Object Control Action, ensure one of the
TouchpadControlOptions children (located under the Controller script alias) has the
Rotate control script active.
Updated less than a minute ago