This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated references to camera system * Changed timing of initialization to prevent race condition * updated constructors for data providers * Removed head height settings in controllers * added initial platform definition for Oculus * removed * Added Oculus Camera Data Providers * updated icons * Updated platform check for Version and check headset connected for runtime. (#59) Tested on platform * Added platform overrides Co-authored-by: Simon (Darkside) Jackson <[email protected]>
- Loading branch information
1 parent
a83cabc
commit 73f0086
Showing
6 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) XRTK. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using XRTK.Definitions.CameraSystem; | ||
using XRTK.Interfaces.CameraSystem; | ||
using XRTK.Providers.CameraSystem; | ||
|
||
namespace XRTK.Oculus.Providers.CameraSystem | ||
{ | ||
public class OculusCameraDataProvider : BaseCameraDataProvider | ||
{ | ||
/// <inheritdoc /> | ||
public OculusCameraDataProvider(string name, uint priority, BaseMixedRealityCameraDataProviderProfile profile, IMixedRealityCameraSystem parentService) | ||
: base(name, priority, profile, parentService) | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void ApplySettingsForDefaultHeadHeight() | ||
{ | ||
HeadHeight = OculusApi.EyeHeight; | ||
ResetRigTransforms(); | ||
SyncRigTransforms(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.