Have a look at the FAQ pages on  http://www.j3d.org/faq for details on just how to do this.  Essentially, you cast a ray in the direction of movement and see if it intersects anything. 
 
I wrote some code once to find the intersecting face.  The approach was to look at each face of the intersected object in turn and see if a normal dropped from the sphere to the plane of the face intersected within the face.
 
Tony
-----Original Message-----
From: Christoph Wille [mailto:[EMAIL PROTECTED]]
Sent: 12 November 2001 12:57
To: [EMAIL PROTECTED]
Subject: [JAVA3D] collision detection

Hello
 
I'd like to detect intersections of a sphere that is moving around in space with other objects (shape3D) . Then I need to extract the face of that object where it intersects the sphere.
 
Can anyone give me a hint how to realize such an intersection detection. Has anyone maybe written something similar that could help me to understand the problem.
 
I would really apreciate very much any help. Thanks a lot in advance
 
Chris

Reply via email to