I'm doing some work with collision detection and I've got a
couple instances of a class 'Beaker' in the scene. A Beaker is basically
a TransformGroup with a couple of Shape3D nodes off of it. I've got a
different object in the scene that has the collision detection behavior
attached to it. What I'm trying to do is determine which Beaker has
hit this object when a collision occurs.
I've tried using the getTriggeringPath() method on the
WakeupOnCollisionEntry object, but the path that is returned only includes
the Locale object and one of the Shape3D nodes. I was under the
impression that this SceneGraphPath object would have the entire path to
this shape node.
Problem: how can I get the whole path from the Locale down to the
Shape3D, or is there another way that I could figure out which Beaker this
Shape3D belongs to (other than setting the userData for the individual
Shape3D nodes)?
Anyone have some ideas?
Thanks,
Bobby
__________________
University of Virginia, Computer Science IV
[EMAIL PROTECTED]
http://www.people.virginia.edu/~rwk4d
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/