A short thing you might want without using EZRotate:
I discovered this from the
Light sample.
//variables
float a=0, b=0, c=0;
while ( LoopGDK ( ) )
{
a = dbWrapValue ( a + 0.5f );
b = dbWrapValue ( b + 0.2f );
c = dbWrapValue ( c + 0.05f );
float x = dbCos ( c ) * 250.0f;
float z = dbSin ( c ) * 300.0f;
dbPositionCamera ( x, 100, z);
dbPointCamera ( 0, 0, 0 );
...
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:
float ox = 'object's x position'
float oz = 'object's z position'
and change the
dbPositionCamera to
dbPositionCamera ( x + ox, 100, z + oz);
All you needed to do was add the coordinates to the new x and z!
Well....... That's it.