Exemplo n.º 1
0
 static VRPlayer BuildVRPlayer(HeadMountedDisplay HMD, 
     HandController LeftHandController, HandController RightHandController, 
     Tracker LeftFootTracker, Tracker RightFootTracker)
 {
     return new VRPlayer(HMD, 
         LeftHandController, RightHandController, 
         LeftFootTracker, RightFootTracker);
 }
Exemplo n.º 2
0
 public VRPlayer(HeadMountedDisplay HMD,
                 HandController LeftHandController, HandController RightHandController,
                 Tracker LeftFootTracker,
                 Tracker RightFootTracker)
 {
     this.hmd = HMD;
     this.leftHandController  = LeftHandController;
     this.rightHandController = RightHandController;
     this.leftFootTracker     = LeftFootTracker;
     this.rightFootTracker    = RightFootTracker;
 }
Exemplo n.º 3
0
        public static (HeadMountedDisplay, HandController, HandController, Tracker, Tracker) GetParts(string s)
        {
            HeadMountedDisplay HMD = null;
            HandController     LeftHandController  = null;
            HandController     RightHandController = null;
            Tracker            LeftFootTracker     = null;
            Tracker            RightFootTracker    = null;

            if (!factories.ContainsKey(s))
            {
                throw new ArgumentException();
            }
            Factory f;

            factories.TryGetValue(s, out f);
            HMD = f.getHeadMountedDisplay();
            LeftHandController  = f.getHandController("left");
            RightHandController = f.getHandController("right");
            LeftFootTracker     = f.getTracker();
            RightFootTracker    = f.getTracker();


            return(HMD, LeftHandController, RightHandController, LeftFootTracker, RightFootTracker);
        }