From ca82b8a601c67e6731bc06d212fb2153a4170c0c Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 18 Feb 2011 09:52:15 +0000 Subject: Fixed picking of ellipsoid Particle had same problem fixed They were both returning a TG instead of a Node so added pick coded to both Added InertiaTensor to Planar polygon --- src/tesseract/objects/Particle.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tesseract/objects/Particle.java') diff --git a/src/tesseract/objects/Particle.java b/src/tesseract/objects/Particle.java index b3b6274..b8bbd08 100644 --- a/src/tesseract/objects/Particle.java +++ b/src/tesseract/objects/Particle.java @@ -78,6 +78,8 @@ public class Particle extends PhysicalObject { Sphere sphere = new Sphere(RADIUS, Sphere.ENABLE_GEOMETRY_PICKING, DIVISIONS, appearance); TransformGroup tg = new TransformGroup(); + tg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ); + tg.setCapability(TransformGroup.ENABLE_PICK_REPORTING); tg.addChild(sphere); return tg; } -- cgit v1.2.3