Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

How to get global physics world coordinates in Unity?

Hi, I have created a simple app in unity that uses a videocapture script to get/save a video.
I would save for each frame the global position of the device and not the Unity-App global position.

In other words, when I play the app, the camera start position is always (0, 0, 0).
I would get the absolute position respect the world.

Thanks in advice for your answer.

Answers

  • dbarrettdbarrett ✭✭✭

    If you want the device's position, then all you have to do is get the Camera's position. You can think of the Camera as the HoloLens, it moves around the scene as you do.

    AR Developer

  • I understand but I'll explain better.
    As you say, the Camera's position is equivalent to the device's position but refers to the Unity World instead I Would the position in My Real World.
    Is it possible to get this position?
    Thanks for your reply.

  • dbarrettdbarrett ✭✭✭

    @SantiOrl92 You mean like GPS coordinates?

    AR Developer

Sign In or Register to comment.