using - picktool

Hello,

I wanted to pick an Object, f.e.:a Cube in the screen with a pickray object.

My Code is:

PickTool picker=new PickTool(group);

picker.setShapeRay(new Point3d(0.0,-2.0,0.0), new Vector3d(0.0,2.0,0.0));

PickResult result=picker.pickClosest();

but the Result object i get is equal to null (result=null)

i dont know why?

please help, if somebody can..

thanks

[422 byte] By [maya3da] at [2007-10-3 9:49:21]
# 1

group.setCapability(TransformGroup.ENABLE_PICK_REPORTING);

group.setPickable(false);

I don't know about the default values.

Most likely something is still missing.

You could download the examples from https://java3d.dev.java.net/binary-builds.html there is a pickcanvas example included...

Bykowa at 2007-7-15 5:06:23 > top of Java-index,Security,Cryptography...