Versions Compared

Key

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

...

  1. For this example, we are starting with this relatively simple two-part “Bottle and Cap”

  2. The first thing we will do is make an empty child object of “CubeBottle” and we will set the transform so the location matches that of the child object. (Maybe name it “placeholder AttachPoint” so it is easy to keep track)

  3. Next, we will right-click on the Cube in the Hierarchy window, then select Motive > Make Grabbable

    1. After this, make sure Is Trigger in the Box Collider component is checked False

      1. Then add a second smaller collider that is placed where the “cap” is meant to attach and set Is Trigger to True. (This makes it so the cap and the bottle both behave so that they cannot fall through the floor. But, can reattach)

  4. After that, right-click on the Cube again and select Motive > Make Attach Receiver

  5. Next, right-click on the Sphere, then select Motive > Make Attachable

  6. Once all the necessary components have been added. Now we will make it so the Attachable and the Attachable Receiver can talk to each other

    1. Expand the VR Attachable Receiver component on the Cube

      1. Expand the Receivers dropdown and type 1 into the size

        1. After that set the Type to something easy to remember. In this case we will just put “Test”

        2. Then set Max Attachments to 1

    2. Next, expand the VR Attachable component on the Sphere

      1. Expand the Attaches To dropdown and type 1 into the size

      2. After that set the Type to the same string used before. In this case, “Test”

      3. Then, drag and drop your previously made “AttachPoint” into the Receiver Attach Point box