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 / Traversing Terrain

Author
Message
Travis Gatlin
15
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 26th Nov 2010 02:25 Edited at: 26th Nov 2010 02:38
when i want to make my object traverse the terrain then it wont let me. i use the Get Terrain Height Command but it just Stays Flat Below The Actual Terrain Here's the code i put in for my camera to Traverse the Terrain:
,I Have No Idea Why it's doing this

The Object of war is not to die for your country but make the other guy die for his
Dia
19
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 26th Nov 2010 09:56
Couple issues:

POSITION CAMERA x,y,z
or
POSITION CAMERA Camera Number,x,y,z

you only have three arguments in your command, so it assumes the default camera, and hence you are constantly positioning your camera at x=1, y=50, and z=wierd number

also if you are using advanced terrain commands to generate your terrain try using the GET TERRAIN GROUND HEIGHT command instead i.e.

POSITION CAMERA camera position x(), GET TERRAIN GROUND HEIGHT(1, camera position x(), camera position z()), camera position z()

This is not the Sig you are looking for....

Login to post a reply

Server time is: 2024-09-29 00:31:27
Your offset time is: 2024-09-29 00:31:27