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 / up down walk matrix

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 4th Jan 2005 13:00
i have a matrix an an object called "Knight.x" i wonderd if you matrix is like bumpy how to make him move up and down on top of it versus just going threw the ups and downs

tahnks in advanced

-smart guy
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 4th Jan 2005 14:44
there's a command called get matrix height(matrixNum,xPos,zPos)

Use it like this:


Understand that?
Neofish

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 4th Jan 2005 23:34
when i put in your code all it did was not let me move forward and backwords.
I want code that puts me ontop of the matrix.
Iain
20
Years of Service
User Offline
Joined: 17th Jun 2004
Location: UK
Posted: 5th Jan 2005 14:19
Here is the source code for a very simple first person shooter view that i wrote some time ago, it uses the get ground height command to keep the camera above the matrix.

You should be able to see how the get ground height command works from this code.

Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 9th Jan 2005 04:30
Ian-
This works good.
Mind if I use this in my program?
Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 9th Jan 2005 11:14
Also, I added two lines to keep the camera from doing "Loops". The way it was, the camera could be rotated completely on it's X axis
Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 9th Jan 2005 12:06
oops, I didn't know how to add the code snippet

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 21st Feb 2005 12:23 Edited at: 21st Feb 2005 12:35
ok i guys thanks to Iain (for the matrix thingy) i have this code:


and it works fine exept for when my guy moves he goes up in all but he apears very high off the matrix. So in other words it works just fine but my "Knight.x" object apears way above the matrix.

-smart guy


Edit:
ok i got it working:
what i did was take away the +100 from the -


but the camera still wont follow my person around

2nd edit:
sorry for all of the edits but i got it working i had to keep some stuff there from the old program.

-Thanks

-Smart ass
Quote: "I meen Smart guy"


Login to post a reply

Server time is: 2024-11-11 23:49:28
Your offset time is: 2024-11-11 23:49:28