public static void DrawDotArc(Vector3 position, Transform transform, float length, float arc, float back) { Vector3 vector3 = transform.forward; VisGizmosUtility.DrawDotCone(position, vector3, arc * length, arc, back); float single = Mathf.Acos(arc) * 57.29578f; Vector3 vector31 = transform.up; Vector3 vector32 = transform.right; VisGizmosUtility.DrawAngle(position, vector3, vector31, single, length); VisGizmosUtility.DrawAngle(position, vector3, vector31, -single, length); VisGizmosUtility.DrawAngle(position, vector3, vector32, single, length); VisGizmosUtility.DrawAngle(position, vector3, vector32, -single, length); }
public static void DrawDotCone(Vector3 position, Vector3 forward, float length, float arc) { VisGizmosUtility.DrawDotCone(position, forward, length, arc, 0f); }