View Single Post
  #1  
Old 07-16-2018, 02:29 PM
jwhopkin jwhopkin is offline
Member
 
Join Date: Jul 2018
Posts: 5
Colliding with sub nodes

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!
Reply With Quote