Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Making Triangles In Dark Basic

Author
Message
Drew the G
User Banned
Posted: 27th Feb 2006 19:43
I know how to make a triangle in DBC, but can someone explain what each number determines, i.e:
make object triangle 3,-5,0,0,0,35,0,0,0,0

what does each number do? Thanks in advance.

Relativity
20
Years of Service
User Offline
Joined: 29th Mar 2005
Location: Position is relative.
Posted: 27th Feb 2006 19:59
The first number sets the object number which you use to reference the object later in the program. All other numbers are the positions of the vertices in sets of three. So,

make object triangle OBJECT NUMBER,VERTEX X1,VERTEX Y1,VERTEX Z1,VERTEX X2,VERTEX Y2,VERTEX Z2,VERTEX X3,VERTEX Y3,VERTEX Z3.

C:\DOS
C:\DOS\RUN
RUN\DOS\RUN

Login to post a reply

Server time is: 2025-05-23 08:55:45
Your offset time is: 2025-05-23 08:55:45