View Full Version : Colliding with sub nodes

07-16-2018, 02:29 PM
Hi, I am trying to get the hand model of my avatar to collide with subnodes of my main model and have them be identified. I can get the collision to work when I use model.collideMesh(node = 'obj'), but when I print out the intersected object in a collide event function it only states I collided with the original model node.

Furthermore, I tried to fix this by declaring the node as a separate object (obj = model.getChild('obj') and working on collision with that, and I cant seem to get any collision with the hand model from that.

My overall goal would be programming different things to happen with each node of the larger model upon collision without having to import them as separate objects.

Thanks for the help!

07-25-2018, 01:47 AM
The avatar collisions (http://kb.worldviz.com/articles/350) article shows a method of identifying collisions with an avatar part by linking another object to it.