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 / Camera Problems

Author
Message
ToyImp
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 8th Jan 2003 19:16
I am trying to figure out how I can have the camera follow behind my plane and I am having no luck. I got it to where it does follow but when the plane turns the camera doesn't follow it right, and just ends up facing one way only. Here's my code:



I could post the whole code from the game but it's 250 or so lines. Any questions ask, and any help is appreciated. Thanks in Advance to those who post.
-------------
I'm Batman....
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Jan 2003 19:58
Oblivion showed me this snippet it may help



ToyImp
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 8th Jan 2003 20:04
wow, not quite what I was expecting.

I'll have to code it to work with my game. If anyone else has any ideas, I am trying anything people throw at me.

-------------
I'm Batman....
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 8th Jan 2003 20:19
sine and cos? why? I dont use them but I can do the same thing - newXposition,newYposition,newZposition

xxxpetratxxx
B. R. W
ToyImp
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 8th Jan 2003 20:25
how would I use that? Never seen that used before. I'd rather use your Idea xxxpetratxxx because like you said, I don't get the reason why he's usng sine, and cos.

-------------
I'm Batman....
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 8th Jan 2003 21:19
Sine and cos caculate angles within 360°. Anyway, check the 3D tutorials on the DarkBasic site under the 'Create' page.

xxxpetratxxx
B. R. W
ToyImp
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 8th Jan 2003 21:48
I've tried everything that I can think of and I can't get that to be used with a Y axis. It just stays on the ground. Doesn't even point toward the plane. Examples would be a lot more helpful.

-------------
I'm Batman....
ToyImp
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 8th Jan 2003 22:13
I'm just going to post the whole code, if it lets me post all of it.



-------------
I'm Batman....
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 9th Jan 2003 01:37
I cant remember how to control the Y axis too...

xxxpetratxxx
B. R. W
TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 9th Jan 2003 18:41
sin and cos is used in newxvalues. these commands are built-in to make things easier(i strongly think thats the reason). for a better but a little confusing control, use them.

THE TRUTH IS OUT THERE!
TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 9th Jan 2003 18:45
these commands are built-in
-
newxvalue commands are built-in.

i did this so i dont confuse anyone.

THE TRUTH IS OUT THERE!

Login to post a reply

Server time is: 2024-04-19 01:34:19
Your offset time is: 2024-04-19 01:34:19