Last active
August 29, 2015 14:04
-
-
Save GOROman/642b4705c58d3b25f13d to your computer and use it in GitHub Desktop.
[Unity] Oculus Rift DK2(SDK 0.4.0) でポジショントラッキング有効範囲か?判別
This file contains hidden or 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
// Tracking State を得る | |
OVR.ovrTrackingState ts = OVRDevice.HMD.GetTrackingState(); | |
// ポジショントラッキング されているか? | |
if ( (ts.StatusFlags & (uint)OVR.ovrStatusBits.ovrStatus_PositionTracked ) != 0 ) { | |
// ポジショントラッキング範囲内 | |
print( "Tracking!" ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment