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?