[Solved] Problem with a grid and the bounding box

Posted By: djfeeler

[Solved] Problem with a grid and the bounding box - 05/14/13 07:44

Hello,

I display a grid in my level. I have placed an object in my level. When I display a bounding box, I have a red line that connects the grid and the bounding box. How can I fix this?



Thanks for advance for your help Djfeeler
Posted By: oliver2s

Re: Problem with a grid and the bounding box - 05/14/13 07:52

You have to set the the color vector to NULL before you draw your bounding box:

Code:
draw_line3d(vector(x1,y1,0),NULL,100);

Posted By: Wiseguy

Re: Problem with a grid and the bounding box - 05/14/13 07:55

Quoting the manual

Quote:
color - BGR end color of the line. The start color is the color of the last line draw call. The line is drawn in a smooth transition between the start and the end color. If NULL is given, no line is drawn, but the position is set for the start of the next line.


Please also take a look at the example.
Posted By: djfeeler

Re: Problem with a grid and the bounding box - 05/14/13 08:00

Thanks for your response.
© 2024 lite-C Forums