protected override void onStart() { if (_trackingModelObject == null) { _trackingModelObject = createTrackingModelObject(_trackingModel); } }
private TrackingModel trackingModelOf(AirVRTrackingModel trackingModelObject) { return(trackingModelObject.GetType() == typeof(AirVRHeadTrackingModel) ? TrackingModel.Head : trackingModelObject.GetType() == typeof(AirVRIPDOnlyTrackingModel) ? TrackingModel.InterpupillaryDistanceOnly : trackingModelObject.GetType() == typeof(AirVRExternalTrackerTrackingModel) ? TrackingModel.ExternalTracker : trackingModelObject.GetType() == typeof(AirVRNoPotisionTrackingModel) ? TrackingModel.NoPositionTracking : TrackingModel.Head); }
private void updateTrackingModel() { if (_trackingModelObject == null || trackingModelOf(_trackingModelObject) != _trackingModel) { _trackingModelObject = createTrackingModelObject(_trackingModel); } if (trackingModelOf(_trackingModelObject) == TrackingModel.ExternalTracker) { AirVRExternalTrackerTrackingModel model = _trackingModelObject as AirVRExternalTrackerTrackingModel; model.trackingOrigin = _externalTrackingOrigin; model.tracker = _externalTracker; } }