MarkLine优化

This commit is contained in:
monitor1394
2021-07-16 08:31:10 +08:00
parent 162aeb02e6
commit 012f6ccb52
5 changed files with 60 additions and 56 deletions

View File

@@ -37,8 +37,7 @@ namespace XUGL
float height, float offset, float dent, Color32 color)
{
var dir = (arrowPoint - startPoint).normalized;
var sharpPos = arrowPoint + (offset + height / 2) * dir;
var sharpPos = arrowPoint + (offset + height / 4) * dir;
var middle = sharpPos + (dent - height) * dir;
var diff = Vector3.Cross(dir, Vector3.forward).normalized * width / 2;
var left = sharpPos - height * dir + diff;