Forum Discussion

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

Unity 5.1 Sensor Data

1. Can someone point me to documentation on the correct way to poll sensor data using the native Unity support in 5.1?

2. I previously used a dedicated thread for sensor polling - will this break with native as Unity doesn't usually like other threads to call it's API?

3. Also, is the sensor data available at the same fidelity? (i.e. 1000Hz, though I was mostly only able to poll 500Hz in practice).

Thanks

3 Replies

Replies have been turned off for this discussion
  • This was the first place I checked:
    http://docs.unity3d.com/ScriptReference ... cking.html

    I need the actual raw sensor data (accelerometer in this case to be specific) so that doesn't help. I also see this:

    http://docs.unity3d.com/ScriptReference ... vePtr.html

    However, there is no documentation on how to actually cast the IntPtr to an Oculus data structure / function and use it. Any guidance you could give here would be appreciated. I pretty much can't upgrade until I figure out how to get the sensor data.
  • Bump. I'd take an answer of "not possible right now" with an ETA, but I'd at least like an answer. Thanks!