OgreOde::CollisionListener - abstract class error

Tempest

28-09-2008 18:57:45

I'm trying to integrate OgreOde into my project, and I'm having some trouble. I'm going to need collision detection with terrain, so I'm using the Demo_Landscape project as a guide.

In the constructor for my FrameListener, I'm setting "this" as the collision listener, so it has to inherit from OgreOde::CollisionListener, such as:

class MyFrameListener : public ExampleFrameListener, public OgreOde::CollisionListener

However, when I try to compile, I get the following error:

'MyFrameListener' : cannot instantiate abstract class

at

mFrameListener = new MyFrameListener(mSceneMgr, mWindow, mCamera);
mRoot->addFrameListener(mFrameListener);


Has anyone else run into this issue?

rewb0rn

29-09-2008 18:18:40

you have to override the abstract functions of course.