The way I do this is to check before they move if there was going to be a
collision, then stop the move if there would be. I do this by sorting my
objects into a resolution grid, then running through all the shapes checking
for intersections on the bounding box representing the moving object.
Dave
> ----------
> From: J. Lee Dixon[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Tuesday, October 24, 2000 7:26 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] [Java3D] Run Against Wall
>
> Some people use Collision detection and then constrain the motion. I
> believe there are some problems getting this to work, such as the fact
> that when the collision occurs it is already too late and you have to back
> up. I use my own "collision detection" where I have drawn invisible lines
> in the scene and intersect the current movement vector with these
> "boundary lines".
>
> Bottom line... you have to do it yourself. There is nothing in Java3D
> that automatically constrains movement of the eyepoint.
>
> -Lee
> J. Lee Dixon
> SAIC - Celebration, FL
> 407-566-1438
> [EMAIL PROTECTED] AOL: LeeOrlando
>
>
> -----Original Message-----
> From: Markus Stiller [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 24, 2000 2:17 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] [Java3D] Run Against Wall
>
>
>
> Hello,
>
> I have made a house in Java3D with an GeometryInfo Polygonarray and
> the KeyNavigator Behavior. My problem is that I can walk by the walls of
> house. Can you help me to find a way to stop this(Behavior?,other way?)?
>
> --
> Markus Stiller
> eMail: [EMAIL PROTECTED]
> Java 3D Experiments: http://java3d.stilleronline.de
>
>
>
===========================================================================
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".