Collosion Detection - getting the node.
Collosion Detection - getting the node.
when using the getCollisionPoint() it returns the triangle and outpos but how to get the node from collosion?
Compete or join in irrlichts monthly screenshot competition!
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @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
Compete or join in irrlichts monthly screenshot competition!
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
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.