Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
Dev/camera system updates (#38)
Browse files Browse the repository at this point in the history
* updated the usages of camera cache main if the camera rig's camera reference

* bumped versions
  • Loading branch information
StephenHodgson authored Nov 3, 2019
1 parent fbe840c commit 76aafe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SpatialObservers/LuminSpatialMeshObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using UnityEngine.Experimental.XR;
using UnityEngine.XR.MagicLeap;
using XRTK.Definitions.SpatialAwarenessSystem;
using XRTK.Services;
using XRTK.Utilities;
#endif // PLATFORM_LUMIN

Expand Down Expand Up @@ -102,9 +103,8 @@ public override void Update()
// Update the observer location if it is not stationary
if (!IsStationaryObserver)
{
var cameraTransform = CameraCache.Main.transform;
ObserverOrigin = cameraTransform.position;
ObserverOrientation = cameraTransform.rotation;
ObserverOrigin = MixedRealityToolkit.CameraSystem.CameraRig.CameraTransform.position;
ObserverOrientation = MixedRealityToolkit.CameraSystem.CameraRig.CameraTransform.rotation;
}

ConfigureObserverVolume();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"author": "XRTK Team (https://github.com/XRTK)",
"dependencies": {
"com.unity.xr.magicleap": "2.0.0-preview.19",
"com.xrtk.core": "0.1.21"
"com.xrtk.core": "0.1.25"
}
}

0 comments on commit 76aafe0

Please sign in to comment.