12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- using System;
- using UnityEngine;
- public class OVRProfile : UnityEngine.Object
- {
- [Obsolete]
- public string id
- {
- get
- {
- return "000abc123def";
- }
- }
- [Obsolete]
- public string userName
- {
- get
- {
- return "Oculus User";
- }
- }
- [Obsolete]
- public string locale
- {
- get
- {
- return "en_US";
- }
- }
- public float ipd
- {
- get
- {
- return Vector3.Distance(OVRPlugin.GetNodePose(OVRPlugin.Node.EyeLeft, false).ToOVRPose().position, OVRPlugin.GetNodePose(OVRPlugin.Node.EyeRight, false).ToOVRPose().position);
- }
- }
- public float eyeHeight
- {
- get
- {
- return OVRPlugin.eyeHeight;
- }
- }
- public float eyeDepth
- {
- get
- {
- return OVRPlugin.eyeDepth;
- }
- }
- public float neckHeight
- {
- get
- {
- return this.eyeHeight - 0.075f;
- }
- }
- [Obsolete]
- public OVRProfile.State state
- {
- get
- {
- return OVRProfile.State.READY;
- }
- }
- [Obsolete]
- public enum State
- {
- NOT_TRIGGERED,
- LOADING,
- READY,
- ERROR
- }
- }
|