{"_id":"594949e62be16d0026ec04eb","category":{"_id":"594949e62be16d0026ec04d3","version":"594949e52be16d0026ec04cd","project":"571fa55ca0acd42000af9545","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-02-25T10:16:15.006Z","from_sync":false,"order":5,"slug":"object-control-actions","title":"Object Control Actions"},"project":"571fa55ca0acd42000af9545","parentDoc":null,"user":"571fa519db52d01700f5cf3d","version":{"_id":"594949e52be16d0026ec04cd","project":"571fa55ca0acd42000af9545","__v":2,"createdAt":"2017-06-20T16:14:29.816Z","releaseDate":"2017-06-20T16:14:29.816Z","categories":["594949e62be16d0026ec04ce","594949e62be16d0026ec04cf","594949e62be16d0026ec04d0","594949e62be16d0026ec04d1","594949e62be16d0026ec04d2","594949e62be16d0026ec04d3","594949e62be16d0026ec04d4","594949e62be16d0026ec04d5","594949e62be16d0026ec04d6","594949e62be16d0026ec04d7","594949e62be16d0026ec04d8","594949e62be16d0026ec04d9","594949e62be16d0026ec04da","594949e62be16d0026ec04db","594949e62be16d0026ec04dc","594949e62be16d0026ec04dd","594949e62be16d0026ec04de","594949e62be16d0026ec04df","594949e62be16d0026ec04e0","594949e62be16d0026ec04e1","59497219f4a8980024dd0631"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Kunekune","version_clean":"3.2.0","version":"3.2.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-25T10:17:53.324Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"> extends [VRTK_BaseObjectControlAction](doc:vrtk_baseobjectcontrolaction)\n\n## Overview\n\nThe Snap Rotate Object Control Action script is used to snap rotate the controlled GameObject around the up vector when changing the axis.\n\nThe effect is a immediate snap rotation to quickly face in a new direction.\n\n## Inspector Parameters\n\n * **Angle Per Snap:** The angle to rotate for each snap.\n * **Angle Multiplier:** The snap angle multiplier to be applied when the modifier button is pressed.\n * **Snap Delay:** The amount of time required to pass before another snap rotation can be carried out.\n * **Blink Transition Speed:** The speed for the headset to fade out and back in. Having a blink between rotations can reduce nausia.\n * **Axis Threshold:** The threshold the listened axis needs to exceed before the action occurs. This can be used to limit the snap rotate to a single axis direction (e.g. pull down to flip rotate). The threshold is ignored if it is 0.\n\n## Example\n\n`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.\n\nTo enable the Snap Rotate Object Control Action, ensure one of the `TouchpadControlOptions` children (located under the Controller script alias) has the `Snap Rotate` control script active.","excerpt":"","slug":"vrtk_snaprotateobjectcontrolaction","type":"basic","title":"VRTK_SnapRotateObjectControlAction"}

VRTK_SnapRotateObjectControlAction


> extends [VRTK_BaseObjectControlAction](doc:vrtk_baseobjectcontrolaction) ## Overview The Snap Rotate Object Control Action script is used to snap rotate the controlled GameObject around the up vector when changing the axis. The effect is a immediate snap rotation to quickly face in a new direction. ## Inspector Parameters * **Angle Per Snap:** The angle to rotate for each snap. * **Angle Multiplier:** The snap angle multiplier to be applied when the modifier button is pressed. * **Snap Delay:** The amount of time required to pass before another snap rotation can be carried out. * **Blink Transition Speed:** The speed for the headset to fade out and back in. Having a blink between rotations can reduce nausia. * **Axis Threshold:** The threshold the listened axis needs to exceed before the action occurs. This can be used to limit the snap rotate to a single axis direction (e.g. pull down to flip rotate). The threshold is ignored if it is 0. ## 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 Snap Rotate Object Control Action, ensure one of the `TouchpadControlOptions` children (located under the Controller script alias) has the `Snap Rotate` control script active.