Search Unity

Question Snap / Align objects via Hololens (in-game) and Editor

Discussion in 'XR Interaction Toolkit and Input' started by czauner, Nov 26, 2020.

  1. czauner

    czauner

    Joined:
    Oct 28, 2019
    Posts:
    1
    We want to create a Hololens App which should help industrial planers to place certain objects (e.g. pipes, engines etc.). However in order to work satisfactory, we need a script (or something similier) which helps to "snap" two objects together and align them properly.

    E.g. if we want to connect two pipes, they have to fit exactly to each other as soon as we move one of the tow pipes very close to other one (see attachment).

    In addition, we need a good and easy snap function that ensure that objects are "snapped to the ground surface" as soon as we move them close to the ground (see attachment).

    This is a common function in Solidworks (CAD) and we need it here, too.

    Thanks for your help,

    Christoph.
     

    Attached Files:

    • snap.PNG
      snap.PNG
      File size:
      315.9 KB
      Views:
      329
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
    Hey there! We recommend checking out our samples, which includes an example scene that shows how to set up a socket to hold an interactable.
     
    rehg_vr likes this.