Object grabbing
The object grabbing system is based on a GrabComponent Blueprint that was created for the VR template, which can be found in the Content > VRTemplate > Blueprints
folder.
GrabComponent is a child class of SceneComponent. For more information about Blueprint components, see Chapter 18, Creating Blueprint Libraries and Components.
To make any Actor of the Level grabbable, add GrabComponent to the Actor and set Mobility to Movable:
There is an enumeration named Grab Type that defines how the object attaches to the motion controller. For more information about enumeration, see Chapter 13, Data Structures and Flow Control.
You can set Grab Type in the Details panel of GrabComponent:
These are the grab types available:
- None: Use this option when you want to disable grabbing without removing the
Grab
component...