WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-25-2010, 01:02 AM
CarlosRamos CarlosRamos is offline
Member
 
Join Date: Feb 2010
Posts: 2
I didn't post more of the script because it's a mess right now Anyway, I think it was my fault... The thing I'm trying to do is to detect the collision with only a child of a model. I didn't mention that in my original post for the sake of simplicity, but after checking it, it seems that's the problem, the object I get on the collision event is the parent, not the child.

Code:
child = model.getChild("Plane06")
child.enable(viz.COLLIDE_NOTIFY)

...

def CollideNot(e):
     if e.obj2 == child:
         print "child"
     if e.obj2 == model:
         print "model"
It will print "model", but never "child". Is there any way to do this?
Reply With Quote
 


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 detection Moh200jo Vizard 1 01-27-2010 07:39 AM
Collision detection with specific models just alex Vizard 1 02-06-2009 11:02 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 events trigger Eunice Vizard 1 01-03-2006 10:39 AM


All times are GMT -7. The time now is 02:24 PM.


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