...
Create an Object that is attached to another Object and needs to be slid before it can be removed. This example describes how to create a Cube which sits on top of another Cube. When slid to a specific point, it can be removed.
...
The object hierarchy will look like this:
...
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Overview
The object hierarchy will look like this:
...
Slide Remove Example
Create an Empty Object in Unity. Add the following:
...
Create an Empty Object as a child of Stationary Cube
Right click on the Sliding Joint Object
Select: Motive → > Joints → > Add Sliding Joint
This will add a Rigidbody and a Sliding Joint. Configure them this way:
...
Right click on the Sliding Joint Object
Select: Motive → > Make Attach Receiver. This will add a VR Attachable Receiver.
...
(Optional) Add a Joint Effects component:
Joint Effects - Upper Limit Reached
...