Ogre::SceneNode* myNode = sceneMgr->getRootSceneNode()->createChildSceneNode("MyNode"); myNode->yaw(Ogre::Degree(45)); // Rotate the node 45 degrees around the Y-axis
Ogre::SceneNode* myNode = sceneMgr->getSceneNode("MyNode"); myNode->yaw(Ogre::Degree(-90), Ogre::Node::TS_LOCAL); // Rotate the node -90 degrees around its local Y-axisThis example retrieves an existing SceneNode and rotates it -90 degrees around its local Y-axis using the yaw function with the TS_LOCAL transform space. Cpp Ogre uses the Ogre package library for rendering 3D graphics.