Problem with teleportation and the use of Cesium Origin Shift

Hello,

I’d like to explain my problem. I’m using an XR Rig for movement, and I’ve assigned it a Cesium Globe Anchor and Cesium Origin Shift. When I don’t place the XR Rig under CesiumGeoreference, I can move using the raycaster, observing the laser as it hits the surfaces I’m targeting, just like in your Cesium Unity sample. However, I also use the XR Rig to move around the globe with my controllers. In this case, teleportation works fine when I’m on the ground, but at a certain point, the controllers become blurry. This happens because the Origin Shift is not under CesiumGeoreference.

In the second scenario, when I place the XR Rig under CesiumGeoreference, the laser gets fixed on my origin when I try to teleport, but I can still move on the surfaces. However, it’s inconvenient because I can’t see the laser hitting the teleportation surface. In this case, when I move, the controllers are no longer blurry, unlike when the XR Rig is outside CesiumGeoreference.

My question is: Is there a way to keep the XR Rig under CesiumGeoreference without the raycaster’s laser sticking to my origin, allowing it to stick to the surfaces I choose for teleportation? Thank you for your help.

I don’t know the answer to your question directly, but have you taken a look at the VR samples in the Cesium for Unity Samples project?