Hi - looking for some general suggestions. Imagine a big room with tables. Paintings are on the tables and on the walls. I want to use hand lasers to “snap” move paintings to other walls. I also want to use hand lasers to target each corner of the painting an shrink/grow it.
I am been experimenting the the ZR toolkit and now realise the ray interactor wont work for me as it will want to snap the object back to the hand - where as I would like to leave it in place.
Can you point me to some places to research on how to approach this? thanks
OK, after hunting around a bunch, I need to use my own raycast, which then using Physics.Raycast I can get a hit object which will list the object hit. From there I can then usign a transform to move it. I will have to look for how to shrink/grow.
Maybe you could take a look at the XRSocketInteractor.
Documentation:
https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@1.0/api/UnityEngine.XR.Interaction.Toolkit.XRSocketInteractor.html
Tutorials:
To avoid the “painting” snapping to your hands when grabbing them, you can disable Force Grab in the XRRayInteractor’s inspector. They will however still follow your ray.
If you don’t want the “paintings” to follow the XRRayInteractor, you should as you say, probably make your own raycast.