following code
Code: Select all
class PostProcessListener : public ExampleFrameListener
{
protected:
public:
PostProcessListener(RenderWindow* win, Camera* cam) : ExampleFrameListener(win, cam)
{
}
bool frameStarted(const FrameEvent& evt)
{
mainLightNode->rotate(Vector3::UNIT_Y, Degree(300 * evt.timeSinceLastFrame), SceneNode::TS_WORLD);
return ExampleFrameListener::frameStarted(evt);
}
};
So mainLightNode starts 300 units right of origin
With the framelistener code above i want to achieve that mainLightNode is rotating around the origin, around the world y axis. But it is only rotating around itselfs y axis still at 300, 0, 0
I have looked at the dot3bump demo (wiht rotating lights) but i´m doing exactly the same thing.
I think it has something to do with my ogre 1.0.0
Is this thing working different in this version of ogre?
How can i rotat around the worlds/origins y axis?
Thanks in advance
Meddten
