The short answer is:
getTriggeringPath() returns the scene graph path to the
"object it collided with".
getArmingPath() returns the scene graph path to the "current
object".
The long answer:
In the collision, there are four important objects:
1. The Behavior object which has
2. a WakeupCondition of WakeupOnCollisionEntry
3. The arming node/path (or bounds)
4. The triggering node/path (or bounds)
The specification of USE_GEOMETRY will use a node/path
The specification of USE_BOUNDS will use a bounds instead (for speed)
The arming node/path is the node for which collisions are detected.
You can think of the Behavior and the WakeupCondition as being
associated with the arming node.
The triggering node/path is the object which collided with the
arming node/path.
The path is returned instead of a node so that you have maximum
flexibility in responding to the collision. It could be you
want to operate on the visual objects, or it could be you want
to operate on the scene graph path (perhaps a TransformGroup)
to the visual object.
Hope this helps,
Dennis
Anish Patel wrote:
>
> Is there any way of determining from the WakeupOnCollisionEntry as to what
> actually collided with the object and caused it to wakeup.
>
> I've tried looking at the book and the JavaDoc but I don't get what they are
> chatting about.
>
> I know there are functions such as getTriggereringPath() and
> getTriggereringBounds() but do these return the current object or the object
> it collided with.
>
> Can anyone help me.
>
> Anish :-)
>
> ===========================================================================
> 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".
--
-----
Dennis J Bouvier
Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
http://sun.com/desktop/java3d/collateral
===========================================================================
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".