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

Author
Message
factual puddle
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Ohio
Posted: 4th Jan 2005 05:29
ive made a matrix and all that but i need to know how to get the ground
so that my camera wont go thru it, i need the ground to be "solid".TY
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 4th Jan 2005 08:58 Edited at: 4th Jan 2005 09:03
you dont make it "solid" you just make sure ur camera stays at the right height. I guess u could put collision on it if its an object or something but use this to keep ur camera at the right height:

Quote: "
sync on : sync rate 0
hide mouse : autocam off

make matrix 1, 1000, 1000, 20, 20
SET MATRIX HEIGHT 1, 10, 10, 50
SET MATRIX HEIGHT 1, 9, 9, 50
SET MATRIX HEIGHT 1, 10, 9, 50
SET MATRIX HEIGHT 1, 9, 10, 50
update matrix 1

position matrix 1, -500,0,-500

do
control camera using arrowkeys 0, .25, .25
position camera camera position x(), get ground height(1,camera position x()+500,camera position z()+500)+5, camera position z()
sync
loop

"

that should help
o and plz dont double post, meaning dont make two post about the same thing, i heard u can get into trouble with the mod's for it, cause i accidentally did it too
factual puddle
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Ohio
Posted: 4th Jan 2005 10:07
yea, sorry about that, i didnt read the thing about them havin to read it and i didnt think it was posted. and ty.

Login to post a reply

Server time is: 2024-09-23 08:19:55
Your offset time is: 2024-09-23 08:19:55