public override void UpdateTransforms() { CircleShape2D circle = _data.Circle; GizmoPlaneSlider2D slider = _data.Slider; circle.Center = slider.Position; circle.RotationDegrees = slider.RotationDegrees; circle.Radius = slider.GetRealCircleRadius(); _data.CircleBorder.OnCircleShapeChanged(); }
public GizmoCircle2DBorder(GizmoPlaneSlider2D planeSlider, GizmoHandle targetHandle, CircleShape2D targetCircle) { _planeSlider = planeSlider; _targetHandle = targetHandle; _targetCircle = targetCircle; _borderCircleIndex = _targetHandle.Add2DShape(_borderCircle); _borderCircle.PtContainMode = Shape2DPtContainMode.OnBorder; _controllerData.Border = this; _controllerData.PlaneSlider = _planeSlider; _controllerData.BorderCircle = _borderCircle; _controllerData.BorderCircleIndex = _borderCircleIndex; _controllerData.Gizmo = targetHandle.Gizmo; _controllerData.TargetHandle = targetHandle; _controllerData.TargetCircle = _targetCircle; _controllers[(int)GizmoCircle2DBorderType.Thin] = new GizmoThinCircle2DBorderController(_controllerData); _targetHandle.Gizmo.PreUpdateBegin += OnGizmoPreUpdateBegin; }
public override void UpdateEpsilons() { CircleShape2D circle = _data.Circle; circle.RadiusEps = _data.Slider.Settings.AreaHoverEps; }