Hi there,

I have a problem with collision detection. If an objects collides with a
series of other objects,
only the first collision gets reported.
For example:

 object X hits A --> WakeupOnCollisionEntry A
 hits B while still intersecting A --> nothing happens
 leaves A while still intersecting B --> nothing happens
 leaves B --> WakeupOnCollisionExit A

what I was expecting is:
 Enter A
 Enter B
 Exit A
 Exit B

is this a problem with Java3D (1.3 beta1), or have I made a mistake ?

The behavior was set up with

 Shape3D x = pickedGroup.getShape();
 WakeupCriterion[] criteria = {
        WakeupOnElapsedFrames(0,false),
        WakeupOnAWTEvent(MouseEvent.MOUSE_RELEASED),
        WakeupOnCollisionEntry(x, WakeupOnCollisionEntry.USE_BOUNDS),
        WakeupOnCollisionExit(x, WakeupOnCollisionExit.USE_BOUNDS),
 };

 WakeupCondition wakeUpOnDrag =  new WakeupOr(criteria);
 ... 
 wakeupOn(wakeUpOnDrag);

setCollidable(true) has been set for all relevant objects
I also tried WakeupOnCollisionMovement() but again, only events for the
first collision are reported

any help is appreciated ...


-- Peter Schäfer

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