public override void Start(HumanoidControl _humanoid, Transform targetTransform)
        {
            base.Start(_humanoid, targetTransform);

            kinectTracker = hipsTarget.humanoid.kinect1;
            tracker       = kinectTracker;

            if (kinectTracker.device == null)
            {
                return;
            }

            hipsSensor  = kinectTracker.device.GetBone(0, Bone.Hips);
            spineSensor = kinectTracker.device.GetBone(0, Bone.Spine);
        }
        public override void Start(HumanoidControl _humanoid, Transform targetTransform)
        {
            base.Start(_humanoid, targetTransform);

            kinectTracker = headTarget.humanoid.kinect1;
            tracker       = kinectTracker;

            if (kinectTracker.device == null)
            {
                return;
            }

            neckSensor = kinectTracker.device.GetBone(0, Bone.Neck);
            headSensor = kinectTracker.device.GetBone(0, Bone.Head);
        }
示例#3
0
        public override void Start(HumanoidControl _humanoid, Transform targetTransform)
        {
            base.Start(_humanoid, targetTransform);

            tracker = kinectTracker = footTarget.humanoid.kinect1;

            if (kinectTracker.device == null)
            {
                return;
            }

            Side side = footTarget.isLeft ? Side.Left : Side.Right;

            upperLegSensor = kinectTracker.device.GetBone(0, side, SideBone.UpperLeg);
            lowerLegSensor = kinectTracker.device.GetBone(0, side, SideBone.LowerLeg);
            footSensor     = kinectTracker.device.GetBone(0, side, SideBone.Foot);
        }
示例#4
0
        public override void Start(HumanoidControl _humanoid, Transform targetTransform)
        {
            base.Start(_humanoid, targetTransform);

            tracker = kinectTracker = handTarget.humanoid.kinect1;

            if (kinectTracker.device == null)
            {
                return;
            }

            Side side = handTarget.isLeft ? Side.Left : Side.Right;

            upperArmSensor = kinectTracker.device.GetBone(0, side, SideBone.UpperArm);
            forearmSensor  = kinectTracker.device.GetBone(0, side, SideBone.Forearm);
            handSensor     = kinectTracker.device.GetBone(0, side, SideBone.Hand);
        }
示例#5
0
 public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, Kinect1Tracker _tracker)
     : base(serializedObject, targetObjs, _tracker, "kinect1")
 {
 }