private void DrawArc()
 {
     if (angleDrawer == null)
     {
         angleDrawer = GetComponentInChildren <AngleDrawer>();
     }
     if (angleDrawer != null)
     {
         var modifiedAngleToTarget = dotFlipRightToLeft * angleToTarget;
         var arcData = new ArcData(transform.position,
                                   directionNormal,
                                   transform.forward,
                                   DrawHelper.GetColorBasedOnAngle(modifiedAngleToTarget),
                                   2,
                                   angleToTarget);
         angleDrawer.UpdateAngleData(arcData);
     }
 }
 private void DrawArc()
 {
     if (externalAngleDrawer != null)
     {
         var arcData = new ArcData(hitPoint,
                                   -arcNormal,
                                   -ReferenceForward,
                                   DrawHelper.GetColorBasedOnAngle(externalAngle),
                                   2,
                                   externalAngle);
         externalAngleDrawer.UpdateAngleData(arcData);
     }
     if (internalAngleDrawer != null)
     {
         var arcData = new ArcData(hitPoint,
                                   arcNormal,
                                   -ReferenceForward,
                                   DrawHelper.GetColorBasedOnAngle(internalAngle),
                                   2,
                                   internalAngle);
         internalAngleDrawer.UpdateAngleData(arcData);
     }
 }
Exemple #3
0
 public void UpdateAngleData(ArcData data) => this.data = data;