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 / 3rd Person Camera, X rotation question...

Author
Message
Up Up And Array
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 16th Sep 2004 05:42
Hey all...

I'm working on a 3rd person style camera, but I have a problem.

I have it set up so the mouse controls the player object's Y axis rotation, and the camera rotates with it, which works fine... but I can't figure out how to make the camera rotate around the object's X axis... at the moment it simply rotates around it's own X axis, meaning the player object doesn't stay in view. Here is the code I have so far...



I've been looking at EZrotate Enhanced, and it sounds like the Orbit command is what I need, but I'm not really sure how to incorporate it...

Can anyone give me any advice?

"You have to be 100% behind someone to stab them in the back..."
GICO
20
Years of Service
User Offline
Joined: 22nd Jun 2004
Location: Probably watching The Monkey Show
Posted: 16th Sep 2004 06:12 Edited at: 16th Sep 2004 06:17
In DBP or DBC???

EDIT: just saw an error in the code you posted! its "get terrain height" mot "get terrain ground height" or somethin! dunno if it helps but now its said

GICO

Give food, give give!!!
Up Up And Array
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 16th Sep 2004 06:21
Argh!

Sorry, I forgot... I'm using DB Pro.

'Get Terrain Ground Height' is a valid command with the new Advanced Terrain plug in.

Thanks for pointing out my omission!

"You have to be 100% behind someone to stab them in the back..."
GICO
20
Years of Service
User Offline
Joined: 22nd Jun 2004
Location: Probably watching The Monkey Show
Posted: 16th Sep 2004 06:23 Edited at: 16th Sep 2004 06:36
so you are using advanced terrain! not very familiar with that... is it just a matrix in your game???

EDIT: its gettin pretty late so i wont do it tonight... goin up early for school! darn that school!

GICO

Give food, give give!!!
Up Up And Array
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 16th Sep 2004 13:08
Yay! I worked it out!

It's amazing what you can achieve, when you just think about it for a bit!

GICO: I'm just using the example terrain that comes with the plugin at the moment, just to give me something to base my camera/movement code on.

"You have to be 100% behind someone to stab them in the back..."
GICO
20
Years of Service
User Offline
Joined: 22nd Jun 2004
Location: Probably watching The Monkey Show
Posted: 16th Sep 2004 21:06
Allright! nice seeing you have solved it yourself! good luck!!

GICO

Give food, give give!!!

Login to post a reply

Server time is: 2024-11-27 09:45:07
Your offset time is: 2024-11-27 09:45:07