object collision help

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.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The sample code posted by rogerborg works for nodes that are IMeshSceneNodes, so it is expected behavior that you can walk through an object that is a sphere scene node.

I posted some code a while back for doing collision with things loaded from Irrlicht scene files. You can find that code here...

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=19725
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=21015

Travis
elapj
Posts: 34
Joined: Tue Nov 06, 2007 1:34 pm

Post by elapj »

how do i create IMeshSceneNodes

andy
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Create them with smgr->addMeshSceneNode(), passing in an IMesh which was created with smgr->loadMesh(), passing the filename of the model you wish to load ;)
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

vitek wrote: I posted some code a while back for doing collision with things loaded from Irrlicht scene files. You can find that code here...

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=19725
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=21015

Travis
Nice. Consider it swiped. ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply