- Home /
Is there any way to set a Gameobject's transform matrix to be the World Space?
I am aware that this title sounds very counter-intuitive in a normal situation. Sadly though, such an edge-case scenario has presented itself.
The details: I need to match the real world space with unity world space. To achieve this I am using VIVE tracking (steamVR) and placing a tracker on the ground in a position that should represent (0,0,0). The issue I am having is that the unity world origin defaults to one of the tracking lightboxes and I do not know how to change this behavior. Is there an easy way to set the tracker to be the world origin in both position and rotation? I have manually attempted this by adding/substracting gameobject vectors, etc but I do not trust my own math, especially in terms of rotation as the other tracked objects (controllers, other trackers) would also need to be rotated along the axis of the tracker placed on the floor due to the slow drift of the tracking.
Any help in this matter would be greatly appreciated. I consider myself to be only moderately acquainted with Unity at best so I may have completely jumped the boat and missed a very basic thing.
TL;DR: World origin matrix is actually one of the VIVE tracking lightboxes but I want to set it to be a VIVE tracker instead.