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 / 3d model and matrix collision

Author
Message
Number1 noob
21
Years of Service
User Offline
Joined: 9th Mar 2004
Location:
Posted: 10th Mar 2004 06:54
I've been working on learnig Dark Basic for six months now and I have started to build a little program where you fly around in stealth bomber and drop bombs to blow things up.I have loaded the bomber and created the matrix but my bomber flies right through it!!!Is there any built in way using collision commands or do I need to figure something else out to solve this problem.

"The snazz berries taste like snazz berries"
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 10th Mar 2004 13:42
do something like...

if matrix height(object position x(1),object position z(1))=object position y(1) then crash=1 else crash=0

i think that's the way, if it doesn't work, check in the help and look up the get matrix height() command, and set the x,y coordinants to the position of the bomber.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 11th Mar 2004 15:57
Just something to consider,
I don't use matries for outdoor terrains because I've found that they slow the program down a little bit, and most collision systems don't handle matrices. You could use Total Terrain from http://www.robinking.com/allseeingi, find a nice heightmap reader (there's a couple for Milkshape), and then you have a beautifully smooth terrain that you can edit in a 3d modeller.

Crazy Donut Productions
Current Project: KillZone
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 11th Mar 2004 16:40
hmmm and what about the Get Matrix Height? if he uses a model then he can't get the height of where the object is in the terrain...or there is a way???

Current Projects: F-16 Gold Wings

Login to post a reply

Server time is: 2025-05-23 13:55:41
Your offset time is: 2025-05-23 13:55:41