After I had a look at the collision detection tutorial I tryed to use it in my project. But I get a problem while compiling ( I am using Dev-C++ ).
He marked the following part:
Code: Select all
ISceneNodeAnimator* pAnim = m_pSMGR->createCollisionResponseAnimator(
m_pWorld->m_pSelector, m_pPlayer->m_pNode,
vector3df(10,10,10),vector3df(0,-100,0), 100.0f );
no matching function for irr::sceen::ISceneManager::
candidates are: virtual
And shows me these lines (from "IScheneManager.h"):
Code: Select all
virtual ISceneNodeAnimatorCollisionResponse* createCollisionResponseAnimator(
ITriangleSelector* world, ISceneNode* sceneNode,
const core::vector3df& ellipsoidRadius = core::vector3df(30,60,30),
const core::vector3df& gravityPerSecond = core::vector3df(0,-100.0f,0),
f32 accelerationPerSecond=100.0f,
const core::vector3df& ellipsoidTranslation = core::vector3df(0,0,0),
f32 slidingValue = 0.0005f) = 0;
I get the Scene Manager whith
ISceneManager *m_pSMGR = m_pIrrDevice->getSceneManager();
Then I tried to compile the Example. That worked. Where is my mistake?
Why is the function just virtual? Is there a posibility to get anoter SceneManager wo is derived form ISceneManager which has a function body for createCollisionResponseAnimator?