lation( new Vector3f(xCoor, yCoor, zCoor) ) ;
positionGroup.setTransform( bond_position ) ;
}
}
-Original Message-
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of John Nelson
Sent: Friday, October 05, 2001 7:27 PM
To: [EMAIL PROTECTED]
Subject: R
Ok, here's another newbie question...
Can I draw 2D objects within my 3D-based scene? I'd like to draw cartesian
coordinates among my objects... and of course those grid lines aren't really
3D objects but rather drawing artifacts within a 3D scene... Still I'd like
the grid to obey (at the very
sion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Graeme R. Foot
> Sent: Thursday, October 04, 2001 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] This doesn't work quite right...
>
>
> Have attached modified code...
> (look for // MOD GF for chan
Just my 2 cents to that:
Build your cylinder so that the axes is along the negtive z axis with the center
of the bottom base at (0,0,0) and the center of the top base at
(0,0,-length).
Then use the inverse transformation generated by the lookAt method with the 2
points which define the position
Have attached modified code...
(look for // MOD GF for changes.)
Main change, your angle calc was the difference between the two point vectors.
This needed to change to be the angle between the cylinder axis and the new
axis, (see the second attachment) and subsequently the orthagonalAxis change
Man... I can't believe I wrote that slop.
If you run the test program I just posted, you will see a cylinder
object rooted at the origin of the scene and a sphere. All well and
good, but the cylinder ends out in free space someplace. It should
connect to the blue sphere, but its pointing off in
All,
I'm trying to connect the dots with cylinder objects but can't quite get
it right. The endpoints of the cylinder should connect to two of the
spheres, but clearly this isn't happening. The meat of the issue is in
the method "makeConnector".
My suspician is that since I do the rotation tr