# Rotate an object around a point in Ogre3D [duplicate]

Possible Duplicate:
How can I rotate about an arbitrary point in 3D (instead of the origin)?

I am new to 3D programming and I have been using Ogre3D lately to get a grasp of it.

What I am trying to do is the following:

I want to make an entity rotate around a point (probably the parent SceneNode) in a circular way only in the X and Z axis.

I have tried using yaw/pitch/roll and rotate but no luck, and I can't find any good tutorials/how-tos online.

## marked as duplicate by MichaelHouse♦, Sean Middleditch, Engineer, Josh♦, sam hocevarJan 6 '13 at 19:51

• Ugh, I don't understand any of it – Pacha Dec 28 '12 at 19:08
• Unfortunately, that's not a reason to ask the question again. Game development is very math heavy. Perhaps you can find some shortcuts in Orge3D. Any options for changing the origin of an object? If you change the origin of your circle to the dot location, then rotate, it will rotate around as you've shown. – MichaelHouse Dec 28 '12 at 19:12

parent = sceneMgr->getRootSceneNode()->createChildSceneNode();