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 / Ground Height

Author
Message
Shawn D
21
Years of Service
User Offline
Joined: 15th Jan 2004
Location:
Posted: 7th Feb 2004 10:31
How do i check the grounf height in a .X model MAP ?

ShawnD
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Feb 2004 12:03
the command intersect object will cover an 3d x file.
look at kensupens code snippet.
http://darkbasic.thegamecreators.com/?m=forum_view&t=10315&b=6


Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Feb 2004 05:13
Indi, you've gotta stop posting answers to DBC questions with DBP methods...

To check the ground height of a .x model, you have to make your own function.

It's relatively easy. To start with, just move the player object up above the heighest point on the matrix object, then move it down untill you get collision, then each loop after that, all you have to do is check for collision, if there is collision, then move the object up untill there isn't any.
If there isn't collision, then move the object down untill there is.

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Feb 2004 10:32
i told ya its on the brain.


Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 9th Feb 2004 00:06
lol

Crazy Australians


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Crappy Coder
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: Uk, Bath
Posted: 9th Feb 2004 01:47
jess, the problem is with your method is that it could be rather slow and inacurate if you have over hangs and the like, the best way is to use nuclear glorys dll for dbc, www.nuclearglory.com

download it, give it a go, its very very useful!!
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 9th Feb 2004 03:36 Edited at: 9th Feb 2004 03:37
Thanks Crappy Coder

Yes, our DLL has ray-cast functions that work similar to the "intersect object" command for DBP only our commands return more data. You can find both DBP and DBC versions of the DLL from our site.

link below

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 9th Feb 2004 04:43
dang it, i need some moneyz! I WANT THAT DLL

Login to post a reply

Server time is: 2025-05-22 16:40:58
Your offset time is: 2025-05-22 16:40:58