Tpp collisions

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RadSun
Posts: 7
Joined: Thu Sep 14, 2006 5:58 am

Tpp collisions

Post by RadSun »

I trying to create collisions using createCollisionResponseAnimator but i have problem with createOctTreeTriangleSelector. :roll:

Code:

Code: Select all

scene::ITriangleSelector* s;
s = scene::ISceneManager->createOctTreeTriangleSelector(mesh,node);
node->setTriangleSelector(s);
s->drop();
Error:

Code: Select all

95 E:\Projekty\mmorpg2\main.cpp expected primary-expression before '->' token 
:?:
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

scene::ISceneManager is the interface used for the scene manager, but it is not the scene manager object. Either declare a variable pointing to the scene manager or use the driver->getSceneManager() directly.
kornerr
Posts: 245
Joined: Thu Jul 06, 2006 9:57 am
Location: Russia, Siberia, Kemerovo
Contact:

Post by kornerr »

Open Source all the way, baby ;)
OSRPG
Tonyx
Posts: 14
Joined: Fri Mar 11, 2005 5:13 pm

Post by Tonyx »

Post Reply