Thanks I will try that.
--- John Wright <[EMAIL PROTECTED]> wrote:
> Ipsi,
>
> Forget using Sun's "Collision Detection".  I'd
> recommend you calculate
> the new position of the object (ball) and then use
> picking to see if it
> is about to collide with another object.  This way
> you can stop the
> motion BEFORE it collides (rather than after).
>
> - John Wright
> Starfire Research
>
> ipsita trim wrote:
> >
> > Hello,
> >
> > I have just started learning java 3d and I have
> been
> > struggling to come to terms with collision
> detection
> > and response.What I want is a ball bouncing of a
> wall.
> > I have looked at tick tock collision (in the
> demos)
> > and managed to modify my code to detect collision
> > (which is not always detected when the ball moves
> too
> > fast). I am moving the ball with the help of my
> > keyboard using the keyboard navigation utility
> > provided in the libraries. I tried modifying the
> > behavior to get the ball to bounce off but it
> doesn't
> > look like its happening. Any help with some
> example
> > source code would be highly appreciated.
> >
> > That was my first problem. My second problem is
> that i
> > want the balls to move randomly (animated by
> > themselves) and bounce of each other and
> > the walls (its the inside of a room with 4
> enclosing
> > walls) and I dont have much of an idea of how to
> go
> > about it apart from the fact that I have to use
> > interpolators providing them with random numbers
> for
> > positions.
> >
> > Thanks in advance
> > Ipsi.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Kick off your party with Yahoo! Invites.
> > http://invites.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".
>
>
===========================================================================
> 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!?
Kick off your party with Yahoo! Invites.
http://invites.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