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 Professional Discussion / camera rotation screwup?

Author
Message
Mugen Wizardry
User Banned
Posted: 29th Aug 2010 21:02
Hi all. Ok for some reason my camera isnt rotating by 360 degrees like my player. it only goes to 180 or 0. i need it to rotate with the player all the way.



thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 29th Aug 2010 21:48
Try using YROTATE OBJECT instead of TURN OBJECT RIGHT.

i.e.:


The SET CAMERA TO FOLLOW command doesn't like the TURN OBJECT commands


Guns, cinematics, stealth, items and more!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Sep 2010 14:37
I always use "turn"/"pitch"/"roll" object whenever I need to do something like this as it doesn't rely on you having a stored variable for the current angle. It works especially well for flight/space sims where the terms are really obviously practical.

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 1st Sep 2010 20:55
Quote: "I always use "turn"/"pitch"/"roll""

But then the object angle ? commands are not correct due to Euler/Cartesian angles.

My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 1st Sep 2010 21:14
LOL this was solved 2 days ago. I can't believe ppl are still posting in it XD

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
sladeiw
17
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 1st Sep 2010 21:21
Quote: "LOL this was solved 2 days ago. I can't believe ppl are still posting in it XD"


Perhaps posting a `thanks` to the guy who helped instead of mocking other people would be a good idea? And, if you solved it yourself then a quick post edit would prevent people wasting their own time to help you.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Sep 2010 22:14
Quote: "LOL this was solved 2 days ago. I can't believe ppl are still posting in it XD"

Here's two things I've learned that you should probably try to learn too:
1-There is always more than one solution to any problem
2-Trying to be clever excludes the goal

Maybe you were trying to be clever or ironic but you come across as being arrogant. People are posting to help both you and other people who might have the same problem. The solution that helped you might not help someone else.

As I and countless others have told you this forum is not here just for your benefit.

Please, try to be more mature I'm getting sick of it now...

Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Sep 2010 22:14
Quote: "Quote: "LOL this was solved 2 days ago. I can't believe ppl are still posting in it XD"

Perhaps posting a `thanks` to the guy who helped instead of mocking other people would be a good idea? And, if you solved it yourself then a quick post edit would prevent people wasting their own time to help you. "


Agreed 100%. I didn't know it was fixed.


Guns, cinematics, stealth, items and more!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Sep 2010 22:28
Quote: "But then the object angle ? commands are not correct due to Euler/Cartesian angles."

Really? I never had any problems with these commands. Whenever I use "turn object right" it turns my object to the right no matter which angle it's facing. What values does it mess up?

Just curious...

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 2nd Sep 2010 14:51
Quote: "Whenever I use "turn object right" it turns my object to the right no matter which angle it's facing"

The issue's not with that, but with the object angle ? commands reading incorrectly with some angles as the euler angles range from -180 to 180, whilst the object angle angles range from 0 to 360. There is sometimes an issue with the results given.

My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 10th Sep 2010 00:10 Edited at: 10th Sep 2010 00:10
EDIT: Wrong post

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/

Login to post a reply

Server time is: 2026-07-22 12:41:37
Your offset time is: 2026-07-22 12:41:37