WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Colliding with sub nodes (https://forum.worldviz.com/showthread.php?t=6164)

jwhopkin 07-16-2018 02:29 PM

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!

Jeff 07-25-2018 01:47 AM

The avatar collisions article shows a method of identifying collisions with an avatar part by linking another object to it.


All times are GMT -7. The time now is 01:50 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC