Hellcowboy
11-03-2011, 12:08 PM
I have this standard line made in my program
glBegin(GL_LINES);
glColor3f(0.0f, 1.0f, 1.0f);
glVertex3f(Cx,Cy,Cz);
glVertex3f(Nx+Cx,Ny+Cy,Nz+Cz);
glEnd();
The thing is I want to make a cone on the end of the line
from (Nx+Cx,Ny+Cy,Nz+Cz) to (Nx+Cx,Ny+Cy,Nz+Cz)+5 or whatever value makes it looks better so that the lines look like arrows
glBegin(GL_LINES);
glColor3f(0.0f, 1.0f, 1.0f);
glVertex3f(Cx,Cy,Cz);
glVertex3f(Nx+Cx,Ny+Cy,Nz+Cz);
glEnd();
The thing is I want to make a cone on the end of the line
from (Nx+Cx,Ny+Cy,Nz+Cz) to (Nx+Cx,Ny+Cy,Nz+Cz)+5 or whatever value makes it looks better so that the lines look like arrows