Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Socket Interactor attach point orientation

Discussion in 'XR Interaction Toolkit and Input' started by ChrisNieder, May 17, 2022.

  1. ChrisNieder

    ChrisNieder

    Joined:
    Apr 26, 2020
    Posts:
    6
    My situation is I have a lamp which I grab and put on a table. The table has the socket and adjusted attachment point so it sits on top, the hover mesh also shows this. Yay!

    When I grab the lamp it's incorrectly held in my hand so I've made an attach point and set for the lamp so I carry it properly. Now when I place it on the socket the hover mesh shows it slanted as if it's being held by a hand. Naturally when I release it, it's stuck in the table as the hover mesh shows. I've changed the sockets attach point to factor in this new position. It does correctly sit on the table but the hover mesh still isn't displaying correct.

    Any ideas? Basically, I want my grab object with it's custom attach point and still have the socket hover mesh correctly show the proper orientation.
     
  2. Ken32

    Ken32

    Joined:
    Nov 21, 2020
    Posts:
    4
    I have also run into a similar problem, did you find out a solution?

    In my scenario, arranging the socket transform location based on a specific object won't be an option as different objects can be placed in the socket.
     
  3. ChrisNieder

    ChrisNieder

    Joined:
    Apr 26, 2020
    Posts:
    6
    I never did find a solution. I just made the socket have the correct orientation in my case and having it awkwardly placed in my hand. I did this just so I can make progress else where but yes, I'll still need to address this at some point. If you find a solution or others reading this please share.