Two problems I am running into:
1. Java3d is not letting me pick against an object in a shared group. This
is a big problem for us since a lot of our stuff like rocks, trees, etc are
in Links to shared groups. I can't understand why this is a limitation.
2. I am getting the error "interp point outside triangle" when I do a pick.
The code I am using to pick is this:
pickTool.setShapeRay( rayStart, rayVec );
PickResult floor = pickTool.pickClosest();
if (floor==null) {
pickToolTerrain.setShapeRay( rayStart, rayVec );
floor = pickToolTerrain.pickClosest();
}
if (floor != null) {
floor.getObject().getLocalToVworld(pickedT);
Point3d point = floor.getIntersection(0).getPointCoordinates();
pickedT.transform(point);
pos.y = (float)point.y;
} else
pos.y = XithEngine.map.getY((float)pos.x,(float)pos.z);
Cheers,
David Yazel
===========================================================================
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".