more precise question (hope so)

I try to explain more clearly my problem

does someone Know how to test if two shape are in collision

to make a method like this

public static boolean intersect(Shape3D s1, Shape3D s2)

because it seem to be possible only with bounds and i need a good test to know if to object are intersecting

just like the wake stuff when he use GEOMETRY

cyril

thank

[400 byte] By [czormana] at [2007-9-19]
# 1
I'm sorry I don't have any answer, but I have a quite simillary problem, and I hope you know the answer:I need to get the collision within 2 GeometryArray, and I can't get it easily!Bertrand
MBerta at 2007-7-8 > top of java,Security,Cryptography...
# 2

For j3d 1.2.1 at any rate, you have to use either Bounds objects or your own code. Also, Shape3D has getBounds and getCollisionBounds methods but I found the former just returns bounding boxes based on the geometry and the latter returns null unless something is set with setCollisionBounds. For what I wanted to do, I used a native C/C++ method I got that does triangle-to-triangle interference detection, then used TriangleArray geometry objects just to display stuff in the j3d scene. I don't think Sun plans and/or has yet decided on a standard scheme for doing interference+collision detection and j3d leaves it up to you for now...

wrs9a at 2007-7-8 > top of java,Security,Cryptography...