Picking based on triangles

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
flip
Posts: 5
Joined: Tue May 19, 2009 9:10 pm

Picking based on triangles

Post by flip »

So.

getSceneNodeFromCameraBB picks SceneNodes using a bounding box, but it's not accurate enough when dealing with FPS-games. Is there any method to do a triangle-based picking for SceneNodes in Irrlicht?
sp00n
Posts: 114
Joined: Wed Sep 13, 2006 9:39 am

Post by sp00n »

may be this:
irr::scene::ISceneCollisionManager::getCollisionPoint ?
Don't use yet, but looks it is that you need.
psychophoniac
Posts: 101
Joined: Wed Dec 03, 2008 5:33 pm
Location: ger

Post by psychophoniac »

check the collision example !
i love skateboarding!
flip
Posts: 5
Joined: Tue May 19, 2009 9:10 pm

Post by flip »

Yeah that's what I was looking for. Will it work to animated meshes too?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Well, check out this already mentioned collision example and you will see yourself that it does work for animated meshes too :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply