Hi, I'm developing a little simulation, and need collision detection in this. There are some objects in the scene that will be animated and they may collide with each other. During the simulation I have to attach and detach a lot of objects. It happens some times that I attach an object and place it near to an other (I have collision) and I remove the object which was there. In this case I got a null pointer exception:
java.lang.NullPointerException at javax.media.j3d.WakeupOnCollisionEntry.getSceneGraphPath(WakeupOnCollisionEntry.java:489) at javax.media.j3d.WakeupOnCollisionEntry.setTarget(WakeupOnCollisionEntry.java:376) at javax.media.j3d.GeometryStructure.addWakeupOnCollision(GeometryStructure.java:739) at javax.media.j3d.WakeupOnCollisionEntry.addBehaviorCondition(WakeupOnCollisionEntry.java:349) at javax.media.j3d.WakeupCriterion.buildTree(WakeupCriterion.java:67) at javax.media.j3d.BehaviorStructure.activateBehaviors(BehaviorStructure.java:344) at javax.media.j3d.BehaviorStructure.processMessages(BehaviorStructure.java:209) at javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.java:83) at javax.media.j3d.J3dThread.run(J3dThread.java:250) Does anybody know how to solve this problem? Can it be a java3d bug? Is there a workaround for this? Help! Csaba =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".