//Edge size
float arrowWidth = ARROW_WIDTH * w * 2f;
float arrowHeight = ARROW_HEIGHT * w * 2f;
//Edge vector
Vec3f edgeVector = new Vec3f(nodeTo.x() - nodeFrom.x(), nodeTo.y() - nodeFrom.y(), nodeTo.z() - nodeFrom.z());
edgeVector.normalize();
//Get collision distance between nodeTo and arrow point
double angle = Math.atan2(nodeTo.y() - nodeFrom.y(), nodeTo.x() - nodeFrom.x());
float collisionDistance = targetModel.getCollisionDistance(angle);