Since this seems to be such a common wish, could you guys, "godlets of java3d"
provide a demo with depicting the process of animating a cylinder with two
spheres?

Would be appreciated by all of us mere 2d mortals.

Asaf.

P.S Godlet is not a trademark. use it at weel

Russell Power wrote:

> Hi,
>
> I'm having some trouble trying to figure out how to create a cylinder to
> connect two spheres together.  I can add everything to the scene correctly,
> but the cylinder never seems to end up in the right spot.  I first tried
> something like:
>
> ...
>
> Vector3d cylStart = new Vector3d();
> cylStart.sub( start, end );
> cylStart.scale( 0.5f );
> cylStart.add(start);
>
> Transform3D cylTrans = new Transform3D();
> cylTrans.lookAt( cylStart, end, new Vector3d(0,1,0) );
>
> ...
>
> Where start and end are locations of the spheres.  This gave me a cylinder
> that was nowhere near where I needed it.  I also tried calculating the three
> euler angles, and using setEuler and setTranslation, to no avail.  I also
> tried creating a quarternion using the axis and angle, but nothing seems to
> want to work out.
>
> Any suggestions would be *much* appreciated.
>
> Thanks!
>
> --russell
>
> ===========================================================================
> 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".

--

-------------------------------------------------
Asaf Dafner        Short -but- Deep, Mainly Deep.

Frontline PCB Solutions

Phone : (972) 8-9322183 Ext. 148
Fax   : (972) 8-9322186
email : [EMAIL PROTECTED]



Je n'ai fait celle-ci plus longue que parce que
je n'ai pas eu le loisir de la faire plus courte.
                                 - Pascal

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