Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
bmdenny001's avatar
3 years ago

Snap Interactors and positions

Hi, I was wondering if anyone would be able to help with a SnapInteractor problem.

In the SnapExample scene of the Oculus SDK the List Snap Pose Delegate is used to position moons and a planet added to a SnapInteractable. Moons and the planet can be moved around and snapped into the different positions moving other objects into surrounding positions.

My question is, is it possible to get the position that the planet and moons are in as they are moved around.

For example, when the scene starts the planet could be considered as being in position 0. I am wondering how I can get this information from the script.

At the moment, the only way I can figure out how to do it would be by their transform position as they are moved around.

I am not sure if positions are stored anywhere.