Hi Haroldo,

I too had the same kind of issue with VRML models and
I figured out a way try this:

If u want to detect the collion on the BranchGroup of
VRML model set "setAlternateCollisionTarget(true)" on
that BranchGroup. Important thing is USE_GEOMETRY on
the collision wakeups.

I have a moving platform. I add a child cube to the TG
that has ViewPlatform. I apply the collision detection
on this shape(CUBE).

If u do "setAlternateCollisionTarget(true)" on the
VRML BranchGroup get the collisions on this group
otherwise the shape in the SceneGraphPath.

BOL
Sivaram.


--- HAroldo Pereira <[EMAIL PROTECTED]> wrote:
> Hi
>
>   I have one problem. I read the TickTockCollision
> on sample of java3D.
>
>   I don't know how to detect collision between 2
> objects (the
> TickTockCollision sample is about Shape3D) as
> geometry of files vrml
> (BranchGroup) .
>
>   This code works if shape is of the type Shape3D. I
> want that shape is of
> the type BranchGroup or other type that permit
> detection of collision
> between files vrml.
>
>   ...
>   BranchGroup shape = new  vrmlLoad("wall.wrl");
>   objTrans.addChild(shape);
>
>   ...
>
>   public void initialize() {
>     wEnter = new WakeupOnCollisionEntry(SHAPE);
>     wExit = new WakeupOnCollisionExit(SHAPE);
>     wakeupOn(wEnter);
> }
>
>   if anybody have one example of the detection of
> collision between objects
> (world) loader of the files vrml send me this
> example.
>
>   Thanks for all.
>
>   []s
>
>   Haroldo
>
______________________________________________________
> Get Your Private, Free Email at
> http://www.hotmail.com
>
>
===========================================================================
> 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".
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

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