MouseRotate using Java3D
I am using Mo开发者_JS百科useRotate
class of java 3d, and I am using it to rotate two cylinders. But the problem is when I rotate one cylinder the other cylinder rotates with it. Is there a way around this or do I have to do it differently?
Thanks.
after short look into the MouseRotate API I guess the following steps are necessary
- create 2 instances of MouseRotate using the constructor with the TransformGroup. One with the TransformGroup of each cylinder
- now you need to implement a selection for the cylinder to be rotated, either by clicking them or by pressing a button (e.g. button 1 for the first, 2 for the second). After one cylinder is selected the according MouseRotate should be used and the other deactivated
精彩评论