Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
djw's avatar
djw
Honored Guest
12 years ago

Oculus + Unity + Kinect

Hello,

(I posted this in the general forum and was directed here - so apologies if you've already read this post)

I have been trying to run a script that incorporates the Kinect (for x,y,z head position) into the Oculus PlayerController.

When I try and run it I get the following errors:

Assets/OVR/Scripts/OVRPlayerController.cs(266,30): error CS0117: `OVRDevice' does not contain a definition for `SensorCount'
Assets/OVR/Scripts/OVRPlayerController.cs(269,35): error CS0117: `OVRDevice' does not contain a definition for `GetPredictedOrientation'

The script I am running was originally written for ovr_unity_0.2.5c
I am using 0.3.2

Has certain syntax become deprecated?

I would welcome any suggestions. I am a bit of a beginner with all of this.

Thanks.

1 Reply

Replies have been turned off for this discussion
  • Yes, the OVRDevice API changed from 0.2 to 0.3. Now you call GetCameraPositionOrientation(..) with the optional atTime argument to get poses that amount of time from the future. Only one sensor is supported now and you can check for it with IsSensorPresent().