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 / Harggood's world maker

Author
Message
temuchan
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location:
Posted: 25th Oct 2006 19:58 Edited at: 25th Oct 2006 20:05
Hey there evryone, I downloaded harggood's world maker and i got it to load a world into my DBP program heres the code:


I was wondering how to get my sphere above the ground. I know i have to make the sphere's y position equal the hieght of the ground, but im not sure how to do that.

please help.

oh ya... here is a screenshot of what is happening. please be paitient with it, it is a big picture, but it is kinda the only way i could describe what is happening

Attachments

Login to view attachments
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Oct 2006 00:00
Maybe next time you post a jpg or png or gif or ... anything but a 1.8 megabyte bmp.

Anyway, you use the GET GROUND HEIGHT() function to get the Y position at the X/Z coordinate of your object, then add a bit to lift the object above the terrain rather than sitting half-way though the ground.

Login to post a reply

Server time is: 2024-09-25 11:33:15
Your offset time is: 2024-09-25 11:33:15