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.

Newcomers DBPro Corner / Magic Worlds and Terrain height detection?????????

Author
Message
Dragon
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: United States
Posted: 28th Mar 2003 07:58
Can anyone tell me if Magic World levels are capable of using the Get ground Height command? Because I've been having a lot of troubble with this and have reason to belive that it's impossable.
All Things end too soon.
Necrym
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: Australia
Posted: 28th Mar 2003 08:55
Yes but your 1st matrix must be positioned to x,y,z 0,0,0 or you will have to offset your ground height check routine. I have a get world hight function that i use - it checks for multi matrix with magic world.
Heres the function.



You call the function by calling the world_height instead of get ground height like so:
y#=world_height(x#,y#,z#,1,12,2000,2000)
then position your camera or object like this
position camera object position x(1),y#,object position z(1)

in the above example
1 the first matrix#,12 is 12 matrix in the total map, 2000,2000 is the size of each matrix

hope that helps

Watch the bouncing cursor - now in 3d

Login to post a reply

Server time is: 2024-09-20 01:07:32
Your offset time is: 2024-09-20 01:07:32