Hi!
I´m trying to build a function like "target" in VRML.
I use a PickBehavior, and when I get the coordinates of the point where I
picked,
I get the equation of the line in the 3d space and pass the coordinates
betwen View Point and Pick Point to the Transform.
The problem is that I "pass"  like a liquid, I would like that terrain would
be solid.
Can anyone help me?
Thanks!



This is the code:


Transform3D t2 = new Transform3D();
        double x = Pick.x;//Pick is the point where I picked
        double y = Pick..y;
        double z = Pick.z;

        Matrix3f matriz = new Matrix3f();
        Vector3d vector = new Vector3d();
        transformGroup.getTransform(t2); //transformGroup is the
TransformGroup of the scene
        t2.get(matriz,vector);

        double x0 = vector.x;
        double y0 = vector.y;
        double z0 = vector.z;

        for (double i=0.0d;i<1d;i+=0.01d){
          x0 = x0 + (i*(x-x0));
          y0 = y0 + (i*(y-y0));
          z0 = z0 + (i*(z-z0));

          t2.setTranslation(new Vector3d(x0,y0,z0));
          transformGroup.setTransform(t2);
          try{
            Thread.sleep(110);
          }catch(Exception exc){
              exc.printStackTrace();
          }
        }

===========================================================================
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".

Reply via email to