I can get the “head” and “hands” positions from the XR camera and controller positions, but is there also a way of knowing where a person is standing? That would be useful for placing character models for avatars in world space, and being able to scale that model.
You can get the headset position from the camera’s (global) position. The ground is defined by the reference type you are using. Default is “local floor”, which means the ground will be at position 0.
But what if I have teleported onto some high meshes? What would be my ground’s position then?
In that case the position will be on top of this platform. But you can still get the distance from the ground using this accessor: