#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
Thanks very helpfull!
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Collision notifications | CarlosRamos | Vizard | 3 | 05-25-2010 02:33 PM |
Collision Detection and Nearest Point to Probe | xabbu | Vizard | 2 | 01-06-2009 03:01 AM |
Collision with child nodes | rubberpimple | Vizard | 4 | 09-17-2008 04:27 PM |
Collision detection with haptic pen | mjabon | Vizard | 3 | 01-17-2008 06:35 PM |
Collision Detection often too slow | Johannes | Vizard | 4 | 02-28-2005 11:11 AM |