Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

Overview

The object hierarchy will look like this:

...

Slide Remove Example

  1. Create an Empty Object in Unity. Add the following:

...

  1. Create an Empty Object as a child of Stationary Cube

  2. Right click on the Sliding Joint Object

  3. Select: Motive > Joints > Add Sliding Joint

This will add a Rigidbody and a Sliding Joint. Configure them this way:

...

  1. Right click on the Sliding Joint Object

  2. Select: Motive > Make Attach Receiver. This will add a VR Attachable Receiver.

...

  1. (Optional) Add a Joint Effects component:

Joint Effects - Upper Limit Reached

...