Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial Locator #1366

Open
1uan-yuan opened this issue Sep 2, 2022 · 0 comments
Open

Spatial Locator #1366

1uan-yuan opened this issue Sep 2, 2022 · 0 comments

Comments

@1uan-yuan
Copy link

After we create a spatial anchor, we could get its position 4x4 matrix. As we all know, the coordinate system of our machine is relating to itself. (For instance, hololens.) If we want to change the current coordinate system to the spatial anchor, we could use a method named: CreateStationaryFrameOfReferenceAtCurrentLocation() from SpatialAnchor.

However, in order to use this method, we need to have a vector3 as its parameter. How do we transform a position 4x4 matrix to a vector3? I have searched a lot, but I did not find anything about this content. Is it possible that anyone could give me a little help? Any suggestion would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant