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 / Camera moving problem

Author
Message
Fredyssun
15
Years of Service
User Offline
Joined: 30th Oct 2009
Location: Germany, Bavaria
Posted: 8th Apr 2010 10:57 Edited at: 8th Apr 2010 16:57
Hey,
I'm trying to make a moving Cube with Camera to Follow and a Camera wich you can rotate arround the object if the key q is pressed. I've got 2 problems with it:

1.) If I rotate the camera under the object the camera goes to its old position, but you don't look to the object, you look to the 'sky'.

2.) If I press the q key the camera doesn't start at the point it was, but at a diferent point. And If I let the programm position the object to the old camera position the camera moves fast away of the object.

Here is my code:


Sorry for my bad english :S

It's not a bug it's a feature
Fredyssun
15
Years of Service
User Offline
Joined: 30th Oct 2009
Location: Germany, Bavaria
Posted: 9th Apr 2010 21:47
okay I found a solution for the second question, but I don't get how to rotate the camera back to it's old angle position, so you can view to the cube like befor rotating the camera.

Has nobody a solution for that?

Here is my improved code:


It's not a bug it's a feature

Login to post a reply

Server time is: 2024-11-23 16:56:26
Your offset time is: 2024-11-23 16:56:26