Code: Select all
In file included from Space.cpp:2:
SpaceApplication.h: In member function `virtual bool
SpaceCameraRotator::frameStarted(const Ogre::FrameEvent&)':
SpaceApplication.h:157: error: no matching function for call to `
Ogre::SceneNode::rotate(Ogre::Vector3&, Real)'
/usr/local/include/OGRE/OgreNode.h:409: error: candidates are: virtual void
Ogre::Node::rotate(const Ogre::Vector3&, const Ogre::Radian&,
Ogre::Node::TransformSpace)
/usr/local/include/OGRE/OgreNode.h:418: error: virtual void
Ogre::Node::rotate(const Ogre::Quaternion&, Ogre::Node::TransformSpace)
Code: Select all
bool frameStarted(const FrameEvent& evt)
{
// Copy the current state of the input devices
mInputDevice->capture();
if(mInputDevice->isKeyDown(Ogre::KC_SPACE))
mRotatingNode->rotate(mRotationAxis, mRotationSpeed * evt.timeSinceLastFrame);
return true;
