# 3rd Person RPG Camera

This topic is 2378 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hey everyone,

I am working on a small RPG project for my portfolio. Now, I am having a few issues with my camera.

I want an "orbiting" camera - I am using the Ogre Engine for my graphics library. The node setup is this:

 Char Node -> Camera Node (child of char node) -> Camera (attached to Camera Node) 

On a very primitive level, I want to circle an arbitrary radius around my "char node" in the XZ-plane while I appropriately rotate about the Y-axis to maintain an appropriate visual of my character (i.e. always look at char node's position). Does anyone have any good methods/resources to go about doing this? I prefer a quaternion solution, however, I am not opposed to use roll/pitch/yaw and translate. I am not necessarily looking for a code solution either - for some reason I am hitting a block and I cannot get things to rotate/look properly.

Thanks for the help!

-RageD

##### Share on other sites

Hey everyone,

I am working on a small RPG project for my portfolio. Now, I am having a few issues with my camera.

I want an "orbiting" camera - I am using the Ogre Engine for my graphics library. The node setup is this:

 Char Node -> Camera Node (child of char node) -> Camera (attached to Camera Node) 

On a very primitive level, I want to circle an arbitrary radius around my "char node" in the XZ-plane while I appropriately rotate about the Y-axis to maintain an appropriate visual of my character (i.e. always look at char node's position). Does anyone have any good methods/resources to go about doing this? I prefer a quaternion solution, however, I am not opposed to use roll/pitch/yaw and translate. I am not necessarily looking for a code solution either - for some reason I am hitting a block and I cannot get things to rotate/look properly.

Thanks for the help!

-RageD

http://www.ogre3d.org/tikiwiki/3rd+person+camera+system+tutorial