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 / Collision Boxes

Author
Message
Jimi
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 22nd Jan 2004 22:49
I need to use collision boxes for my game, but I don't fully understand the perameters.The help menu says:

MAKE OBJECT COLLISION BOX Object Number,X1,Y1,Z1,X2,Y2,Z2,flag

I understand the object number, and the flag, but I have no idea what theX1,X2, etc is for.It seems that if they are to size the box, you would only need one set. Can anyone explain?

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 23rd Jan 2004 02:56
Look at the BOX Command. Its bascially that but adding Z-Depth.

BOX is like this

Left(X1)--------Top(Y1)---------Right(X2)
|
|
|
|
Left(X1)--------Bottom(Y2)------Right(X2)

Add another dimension for that to make it fit for collision boxes. One side of the box is Z1, the backside of the box is Z2. Draw a cube on a piece of paper and youll see.

RPGamer


We need help! Email us! [email protected]

Login to post a reply

Server time is: 2025-05-22 14:07:16
Your offset time is: 2025-05-22 14:07:16