//Get collision distance between nodeTo and arrow point
double angle = Math.atan2(y2 - y1, x2 - x1);
float collisionDistance = targetModel.getCollisionDistance(angle);
//Point of the arrow
float targetX = x2 - edgeVector.x() * collisionDistance;
float targetY = y2 - edgeVector.y() * collisionDistance;
//Base of the arrow
float baseX = targetX - edgeVector.x() * arrowHeight * 2f;
float baseY = targetY - edgeVector.y() * arrowHeight * 2f;