Forum Discussion
Nickauhla
1 year agoExplorer
Spatial Anchor GetHandle behave weirdly
Hello all,
I'm trying to mess around with the Spatial Anchor, and I encounter a lot of problems...
I've managed to create anchors, save them, then load them.
I use the "Oculus XRAsync Query Anchors" Bp function, then I loop over the Query result to "Spawn Oculus Anchor Actor From Query".
My anchors appears correctly at the right place. If I spawn an actor and add it as a child to my anchors, its placement is right, however I can't access its world location (it's always (0,0,0)).
However, I need to get their 3D position, and to do so I get the Anchor's Handle transform.
I then set my pawn's position and rotation to one of the anchors. It seems to work.
When I use the location resulting from this handle transform call, my actors are displayed correctly, but with a rotation of about 180 degrees from the anchors.
If I apply the handle's rotation to the handle's location (which I did as test material, because I don't think it makes sense as the handle should have the right position), I get the rotation right, but there is a delta of about 30 cm between my anchors and the actors.
Any idea?
I guess the Get Handle thing doesn't work as I think it does, but can't find any documentation on it...
Replies have been turned off for this discussion
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years ago