public override void Start(HumanoidControl _humanoid, Transform targetTransform) { base.Start(_humanoid, targetTransform); astraTracker = headTarget.humanoid.astra; tracker = astraTracker; if (astraTracker.device == null) { return; } neckSensor = astraTracker.device.GetBone(0, Bone.Neck); headSensor = astraTracker.device.GetBone(0, Bone.Head); }
public override void Start(HumanoidControl _humanoid, Transform targetTransform) { base.Start(_humanoid, targetTransform); astraTracker = handTarget.humanoid.astra; tracker = astraTracker; if (astraTracker.device == null) { return; } Side side = handTarget.isLeft ? Side.Left : Side.Right; upperArmSensor = astraTracker.device.GetBone(0, side, SideBone.UpperArm); forearmSensor = astraTracker.device.GetBone(0, side, SideBone.Forearm); handSensor = astraTracker.device.GetBone(0, side, SideBone.Hand); }
public override void Start(HumanoidControl _humanoid, Transform targetTransform) { base.Start(_humanoid, targetTransform); astraTracker = footTarget.humanoid.astra; tracker = astraTracker; if (astraTracker.device == null) { return; } Side side = footTarget.isLeft ? Side.Left : Side.Right; upperLegSensor = astraTracker.device.GetBone(0, side, SideBone.UpperLeg); lowerLegSensor = astraTracker.device.GetBone(0, side, SideBone.LowerLeg); footSensor = astraTracker.device.GetBone(0, side, SideBone.Foot); }
public override void Start(HumanoidControl _humanoid, Transform targetTransform) { base.Start(_humanoid, targetTransform); humanoid = _humanoid; astraTracker = hipsTarget.humanoid.astra; tracker = astraTracker; if (astraTracker.device == null) { return; } hipsSensor = astraTracker.device.GetBone(0, Bone.Hips); spineSensor = astraTracker.device.GetBone(0, Bone.Spine); chestSensor = astraTracker.device.GetBone(0, Bone.Chest); neckSensor = astraTracker.device.GetBone(0, Bone.Neck); }
public TrackerProps(SerializedObject serializedObject, HumanoidControl_Editor.HumanoidTargetObjs targetObjs, AstraTracker _tracker) : base(serializedObject, targetObjs, _tracker, "astra") { }