Hi Kevin,

If you want to do Collision Detection for terrain following etc then check
out the Behavior/Collision system included in the Java3D Fly Through demo.
This includes an extensible collision system using picking that can be used
for terrain following etc.

The demo is available (with source code) from the Java3D home page.

Rgds

Paul

>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>Importance: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
>Date: Mon, 20 Aug 2001 17:15:42 -0700
>From: Kevin Williams <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Collisions using default J3D WakeupOnCollisionEntry behavior
>To: [EMAIL PROTECTED]
>
>I know the WakeupOnCollisionEntry can't be used for terrain following or
>collision avoidance.
>
>I'm just detecting a standard collision.  I've searched the FAQs, tutorials,
>etc and haven't found an answer to this.
>
>When I get a WakeupOnCollisionEntry event, how do I tell what object
>collided with what?
>I pulled out the event using the following, but haven't found a way in the
>API to tell what I collided with.
>         while (criteria.hasMoreElements()) {
>            WakeupOnCollisionEntry woce = (WakeupOnCollisionEntry)
>criteria.nextElement();
>         }
>
>Also, I've set up the collision detection to use Geometry with:
>         wce = new WakeupOnCollisionEntry(targetNode,
>WakeupOnCollisionEntry.USE_GEOMETRY);
>but it still seems to be using the bounds.   My Primitives were created,
>then I ran
>         primitive.setCollidable(true);
>on the object.  Is there anything else I need to do for Geometry based
>collisions?
>
>Any help is greatly appreciated.  (I'm still new at this, and I'm sure it
>shows :) )
>
>Thanks,
>Kevin

----------------------------------------------------------
Paul Byrne                      Email : [EMAIL PROTECTED]
Sun Microsystems                Phone : (650) 786 9926
Visualization Software Group    Fax   : (650) 786 5852
----------------------------------------------------------

===========================================================================
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".

Reply via email to