Checking Collision with a subnode
Hello! I'm working on collision between 2 objects, When my main object collide with a second object, I can easily get the the second object ID; my main problem now is how will I check if my main object collided with a child (subnode) of the second object?
|
There is no command to check for collisions with a sub-part of an object. You can do this using the method described in the following article:
http://kb.worldviz.com/articles/350 |
You can also try re-parenting the child to viz.WORLD, apply a collision shape to it, and then detect collisions.
e.g. model = viz.add( 'myModel.ive') child = model.getChild( 'subnode-GEODE' ) child.parent( viz.WORLD ) child.collideBox() Masaki |
Thanks very helpfull!
|
All times are GMT -7. The time now is 07:23 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC