VRTK_ClimbableGrabAttach
extends VRTK_BaseGrabAttach
Overview
Marks the Interactable Object as being climbable.
The Interactable Object will not be grabbed to the controller, instead in conjunction with the
VRTK_PlayerClimb
script will enable the PlayArea to be moved around as if it was climbing.
Script Usage:
- Place the
VRTK_ClimbableGrabAttach
script on either:- The GameObject of the Interactable Object to detect interactions on.
- Any other scene GameObject and then link that GameObject to the Interactable Objects
Grab Attach Mechanic Script
parameter to denote use of the grab mechanic.
Inspector Parameters
- Use Object Rotation: Will respect the grabbed climbing object's rotation if it changes dynamically
Example
VRTK/Examples/037_CameraRig_ClimbingFalling
uses this grab attach mechanic for each item that is climbable in the scene.
Updated less than a minute ago