WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-21-2010, 03:10 AM
Chapre Chapre is offline
Member
 
Join Date: Sep 2010
Posts: 36
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?
Reply With Quote
  #2  
Old 10-21-2010, 10:57 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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
Reply With Quote
  #3  
Old 10-21-2010, 11:13 AM
masaki masaki is offline
Member
 
Join Date: Jan 2008
Posts: 63
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
Reply With Quote
  #4  
Old 10-25-2010, 06:25 AM
Chapre Chapre is offline
Member
 
Join Date: Sep 2010
Posts: 36
Thanks very helpfull!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 05:02 AM.


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