Collosion Detection - getting the node.

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
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Collosion Detection - getting the node.

Post by Strong99 »

when using the getCollisionPoint() it returns the triangle and outpos but how to get the node from collosion?
spopo
Posts: 33
Joined: Wed Mar 28, 2007 1:46 pm

Post by spopo »

Well if i understood your question well, then try getSceneNodeFromCameraBB, getSceneNodeFromRayBB or getSceneNodeFromScreenCoordinatesBB.

And shame on you if this is what you're asking! How can you be a project leader if you can't just check what other methods does scene collision manager has...
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

well... i forgot to say fast, getSceneNodeFromRayBB is the one i was thnking of but its a littlebit time consumming. And those use the bounding boxes not the triangles
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

getCollisionPoint() works off an ITriangleSelector. to know the node you will need to keep track of where you use the ITrangleSelector. you can also use ISceneNode.getTriangleSelector() to get the current triangle selector set to a node. keep in mind that the same triangle selector can be used on multiple nodes.
Post Reply