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 / matrix collision help

Author
Message
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 29th Nov 2002 12:14
Hi i have made a matrix and places an objects on it u are controling one but i dont know how to get it to collide with it.

please help

cloud
TheCyborg
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 29th Nov 2002 12:34
Try:
Set Object Position Player X#,Get Matrix Height(),z#

Not sure if there are any parameters for the Get matrix Height Command.

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 29th Nov 2002 14:01
Well i didn't quiet mean to collide with the matrix i meant to collide with the objects like a box or sphere on the matrix.

cloud
Matt0r
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 29th Nov 2002 16:33
Help files. Read. Them.

Cake also has layers. Mmmmm... cake. Mmmmm.. onion cake.

2x 2700+, 256MB PC3200 DDR-RAM, GF4 Ti 4600 graphics, Sony 20" TFT monitor, a nice 8086 instruction set to play with
Yarbles
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Toronto
Posted: 29th Nov 2002 19:55
You can use native DB collision or you can test distance between the objects like this:



The Yellow Jester does not play but gently pulls the strings
And smiles as the puppets dance in the court of the Crimson King.
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 29th Nov 2002 22:17
I have read the help files but they don't help.
TheCyborg
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 29th Nov 2002 22:17
Here is a precisely 3D distance code:



TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
Dean
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Canada
Posted: 30th Nov 2002 05:01
what do you mean by "collide with it"?

it's just




''Mmmm.. Tastes like Nazca!''
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 30th Nov 2002 05:36
nazca, thats just crazy enough to work...would that work if you were say walking on a part of the level that does not have the matrix for a ground?
Dean
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Canada
Posted: 30th Nov 2002 09:15
if your not on the matrix, the GetGroundHeight() function always returns 0

hope that helps


''Mmmm.. Tastes like Nazca!''
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 30th Nov 2002 13:12
Thanks nazca but if i can't get this to work then i'll be back ok. and i don't mean that to be nasty ok.

Login to post a reply

Server time is: 2024-04-25 04:36:51
Your offset time is: 2024-04-25 04:36:51