 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sun Mar 04, 2007 10:36 pm Post subject: Positioning and Transforming |
|
|
Is there anyway to add more than one Shape3D object to a
TransformGroup and Position them.
I am building a molecule viewer and I need to add 3 spheres to one
TransformGroup so I can make use of the MouseRotation
class(com.sun.j3d.utils.behaviour.mouse.MouseRotation).
If not what are my other options? |
|
| Back to top |
|
 |
Thomas Partsch Guest
|
Posted: Mon Mar 05, 2007 2:34 am Post subject: Re: Positioning and Transforming |
|
|
vm.benjamin (AT) gmail (DOT) com schrieb:
| Quote: | Is there anyway to add more than one Shape3D object to a
TransformGroup and Position them.
|
You can add as many Shapes as you want to a TransformGroup. But with
that single TransformGroup they are all positioned and rotated the same
way. To have them positioned differently, you have to use a
TransformGroup for each shape to set its individual position. To rotate
all shapes with the mouse behavior, you can then use one TransformGroup
to which you have to add those shape-TransformGroups.
Hope thats what you wanted to know.
- Thomas |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|