Skip to main content
New Participant
August 19, 2019

Player location in Boundary space

Is there any way to get the players exact location in the boundary space? The TestNode function only gives the distance to the nearest boundary array point. If I could get the distance to more then one point I could calculate it but distance to 1 point is not enough for a fixed location.

3 replies

dddienstAuthor
New Participant
August 20, 2019
Maybe someone can at least explain the difference between the closest point and the closest point normal? I am pretty sure I know what the closest point is telling me but what is the closest point normal telling me?
Corysia
Up and Coming
August 22, 2019
Ok, I'll take a stab at this.  I'm not an expert, but I have decent Google Fu.  And maybe someone will correct me if I'm wrong and I'll learn something, too.
ClosestPointVector3Describes the location in tracking space of the closest boundary point to the queried node or point.
ClosestPointNormalVector3Describes the normal of the boundary point that is closest to the queried node or point.

I would assume that the Normal is the same as any Normal in computer graphics.
https://en.wikipedia.org/wiki/Vertex_normal

So...I would guess that the normal is the UP of that vertex for the boundary point.  Imagine taking that grid of the Guardian cage and laying it flat like it was terrain.  Apply a texture to it and shine some light on it.  Normals are used in that case to determine how the light plays across that surface.

I'd also guess that the normal vector is pointing generally towards the center of the play area.
VR Development: https://discord.gg/8R9SHQP Quest Example: https://github.com/Corysia/Unity-Oculus-Example
Up and Coming
September 11, 2019
Hey @dddienst, did you find a solution for this? We are looking at the same topic at the moment. Would be great to locate a player in the tracked boundary.
Cheers.
Processor AMD Ryzen 9 3900X 12-Core Processor, 3800 Mhz Installed Physical Memory (RAM) 32.0 GB NVIDIA GeForce RTX 2080 Ti