Forum Discussion

moritz's avatar
moritz
Explorer
12 months ago

Check if object is snapped

Hi everybody,

I am trying to implment an interaction where the user (1) grabs an Interactable object and snaps it to a predefined position and then (2) has the option to translate transform that same object to a specific position. 

I did encount a few problems/question that I couldn't solve yet. 

1. How can I check, if an object is snapped to a predefined snaplocation? I want to achieve, that I then can deactivate and activate the relevant Grab Transformers and maybe snap locations

2. How can I check, if an object is transformed (through one grab translate transformer) to a specific position and then lock it there while still active? I want the object to be able to be translate-transformed again, but only on  a release and grab, not while keeping it grabbed (active). 

 

Any help is greatly appreciated. I suppose I have to code a little bit which I don't have a big problem with, however a starting point would be of great help to me.

Thank you 🙂

4 Replies

  • Hi moritz, I've switched teams and no longer work on Interaction SDK, but you can direct any questions to ffejnosliw. Thanks, and best of luck 🙂  

    • moritz's avatar
      moritz
      Explorer

      Thank you for your reply! Is the user you tagged the right one? He hasn't been online since 2021...

      • Big_Flex's avatar
        Big_Flex
        Meta Employee

        Yup, he's the right one! That was his personal account before he joined Meta a few weeks ago, which is why it's been inactive for so long.