redneon

Currently, I have an object in my scene which I'm rotating. What I want to do is keep this object stationary and rotate the camera around it because I'm planning to add a few other objects and a sky box.

Is there any way I can do this



Re: XNA Game Studio Express Rotate camera about a point

Wil Burton

Set the camera target to your object's location and rotate the camera position about it.



Re: XNA Game Studio Express Rotate camera about a point

riemerg

You can use the Vector3.Transform method to rotate you camerapos vector

I have written a chapter on this with some examples, which I will put on my site tomorrow.






Re: XNA Game Studio Express Rotate camera about a point

redneon

riemerg wrote:

You can use the Vector3.Transform method to rotate you camerapos vector

I have written a chapter on this with some examples, which I will put on my site tomorrow.



Cool. Could you post the link on here once it's up





Re: XNA Game Studio Express Rotate camera about a point

riemerg

Sure. I'll post it in this thread