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 / 3rd person camera question

Author
Message
glyvin101
20
Years of Service
User Offline
Joined: 27th Jan 2005
Location:
Posted: 20th Jun 2005 04:53
hi i was following one of the tutuorials and this is what i have so far

well anyway I am having troube understanding this part of the code

could you please help explain it to me?

Thank you,

Glyvin101
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 20th Jun 2005 05:06 Edited at: 21st Jun 2005 05:35
Well the new value commands are a way to give a point in space it's own xyz axis.

basicly it can be like this: (correct me if I'm wrong)
1=newzvalue(2,3,4)

1=the variable wich the new z would be stored in
2=the z position of the point in space
3=the angle of the axis (object angle Y() is often used)
4=the amount "it" will travel in that direction

if 1 and 2 are the same then the value will keep going in that direction (good for moveing objects at weird angles)

if 1 and 2 aren't the same then the value will constantly start over at the origin (good for camera's)

if you understand this command then you are a big step further into 3d games.

please reply
glyvin101
20
Years of Service
User Offline
Joined: 27th Jan 2005
Location:
Posted: 20th Jun 2005 11:54
ok still a bit of a hard time understanding it

thx anyways

glyvin101
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 21st Jun 2005 05:34
Don't worry, I cracked my brain for this one too, but once you get it, it's realy easy.

please reply

Login to post a reply

Server time is: 2025-05-22 20:10:50
Your offset time is: 2025-05-22 20:10:50