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 / how do i set camera so it will roll over tops of hills on matrix?

Author
Message
Sonic 91 Software
20
Years of Service
User Offline
Joined: 19th Mar 2005
Location: In a Cryptic Crossworld!
Posted: 8th Jun 2005 21:41
how do i set camera so it will roll over tops of hills on matrix?

sonic91
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 9th Jun 2005 12:12
Sonic The Hedgehog,

Return Value=GET GROUND HEIGHT(Matrix Number, X, Z)

The value returned from the command above, you will want to place as the Y coordinate in the POSITION CAMERA X,Y,Z command. For better effect, increase the ground height return value by about 10, so that the camera will be somewhat above the matrix ground. Do it like this:

gheight# = get ground height(1,xpos#,zpos#)

position camera xpos#,gheight# + 10,zpos#



+NanoBrain+
the fake Mr T
19
Years of Service
User Offline
Joined: 6th Jun 2005
Location:
Posted: 14th Jun 2005 19:01
this works better and easier then any other ways i've seen (not many) but it's flawed, in that you can start climbing down hills before you reach the top, or vice versa.
still having said that this is still the best way.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 19th Jun 2005 06:53
Quote: "
Start climbing down hills before you reach the top
"


Uh? In a 1st person game with NanoBrain's code, how could you 'start climbing down hills before you reach the top'?

Would you care to post some example code proving this theory, or explain yourself more clearly?

How's my typing? Phone 0800-GO-TO-HELL

Login to post a reply

Server time is: 2025-05-22 19:47:31
Your offset time is: 2025-05-22 19:47:31