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.

Dark GDK / Rotating the Camera Around Objects!! =D

Author
Message
The Mayflower
16
Years of Service
User Offline
Joined: 17th Dec 2007
Location: Plymouth, Massachusetts
Posted: 18th Dec 2007 00:46
A short thing you might want without using EZRotate:

I discovered this from the Light sample.



You can change the 0.05f to change the speed of the rotation.

You can change the 250.0f and 300.0f to the shape of the oval/circle you are wanting to rotate in. 250 and 300 makes a slight oval, wider on the z axis.

The dbPointCamera command points the camera for you. DUH!

If you want to rotate around an object instead of around the origin, you could:



and change the dbPositionCamera to



All you needed to do was add the coordinates to the new x and z!

Well....... That's it.

Login to post a reply

Server time is: 2024-11-17 00:50:39
Your offset time is: 2024-11-17 00:50:39