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 🙂1.2KViews0likes4CommentsTwo Grab Rotate Transformer Snapping when triggered
Hi, Setting up a simple Two Grab Rotate Transformer and am noticing that when both triggers are pressed the object snap rotates a certain angle and than starts to rotate based on controller movement. If both triggers are pressed many times the object keeps rotating around even though controllers are not moved. The One Grab Rotate Transformer works fine and leaves the object rotation intact before rotating based on controller movement. Any ideas?482Views0likes0CommentsHow can I attach a SnapInteractor in code so that it doesn't get pushed?
When a snap interactor snaps to a snap interactable "by hand", it doesn't get pushed by other objects until it unselects. However, when I try to do it through code, I can push it with other objects. This is how I select it with code: glassInteractable.AddSelectingInteractor(glassInteractor); glassInteractor.Select(); In the Debug view in Unity, I can see that the Grabbable's Points list is empty. When I snap it by hand it has one element. Maybe it's relevant. Thanks for any help.937Views1like1Comment