Beispiel #1
0
 private void Awake()
 {
     _currentState    = new OVRPlugin.HandState();
     Skeleton         = GetComponent <HandSkeleton>();
     Physics          = GetComponent <HandPhysics>();
     SkeletonVis      = GetComponent <SkeletonVisualizer>();
     HandMesh         = GetComponent <HandMesh>();
     _confidenceFader = new HandConfidenceFader(40);
 }
Beispiel #2
0
            public HandReflection(Hand hand)
            {
                Hand = hand;
                var handType = typeof(Hand);

                IsTrackedSetter      = handType.CreateSetFieldDelegate <Hand, bool>("_isTracked");
                HandConfidenceSetter = handType.CreateSetFieldDelegate <Hand, Hand.HandTrackingConfidence>("_handConfidence");

                HandConfidenceFader = new HandConfidenceFader(40);
                PointerGetter       = handType.CreateGetFieldDelegate <Hand, Hand.PointerState>("_pointer");
            }