public override void Start(HumanoidControl _humanoid, Transform targetTransform) { base.Start(_humanoid, targetTransform); leapTracker = handTarget.humanoid.leapTracker; tracker = leapTracker; if (leapTracker.device == null) { return; } Side side = handTarget.isLeft ? Side.Left : Side.Right; forearmSensor = leapTracker.device.GetBone(0, side, SideBone.Forearm); handSensor = leapTracker.device.GetBone(0, side, SideBone.Hand); for (int i = 0; i < (int)Finger.Count; i++) { StartFinger(side, handTarget.fingers.allFingers[i], i); } }
public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, LeapTracker leapTracker) : base(serializedObject, targetObjs, leapTracker, "leapTracker") { headMountedProp = serializedObject.FindProperty("leapTracker.isHeadMounted"); }