diff options
author | Steve <steveb9@u.washington.edu> | 2011-02-18 09:52:15 +0000 |
---|---|---|
committer | Steve <steveb9@u.washington.edu> | 2011-02-18 09:52:15 +0000 |
commit | ca82b8a601c67e6731bc06d212fb2153a4170c0c (patch) | |
tree | 891ab518e8e9e4e84419b33768d8b16b1ab2c830 /src/tesseract/objects/Particle.java | |
parent | af467cea40b760221244a6ce23c4e04ca2d3f37a (diff) |
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
Diffstat (limited to 'src/tesseract/objects/Particle.java')
-rw-r--r-- | src/tesseract/objects/Particle.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |