Adding attach points to virtual objects
To configure attach points on VR objects, we must first understand what attach points are and why they are important. An attach point is a designated location on a VR object other objects can be attached to. This allows for more complex interactions within a virtual environment, such as holding a gun or a tool or placing an object on a shelf.
To set up attach points, we need to select the VR object we want to add the attach point to. Within the object’s hierarchy, we must create an Empty
GO and position it at the desired location for the attach point. This empty GO will act as the actual attach point.
Once the Empty
GO is in place, we will need to add it to the Attach Transform reference slot on the XR Interactor
component. We will test this feature out with our Cylinder
GO.
Let’s duplicate the 11_HapticFeedback
scene and rename it 12_AttachPoints
.
To configure an attach point on the Cylinder
GO, go through the following...