how can i "transform the center of transform" in Java3D ???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, February 17, 2003 12:12 PM

hi

i wanna rotate a ColorCube not by your geometry center, by example rotate the ColorCube by a 0,0,0 coordinate.

HOW CAN I DO THIS??.

plss response me.

thanx

Re: how can i "transform the center of transform" in Java3D ???

Posted By:   Gernot_Veith  
Posted On:   Monday, February 17, 2003 11:56 PM

hi,


by default you place some object in a TransformGroup i.e. a local coordinate system in your scene graph. If you want to move the object you have to change the Transform3D object of this TransformGroup. for instance, you want to let rotate the object around the origin or a ccordinate axis , create a transform3d that describes the rotation you want to perform, multiply this transform3d with the one of the TransformGroup and put the new transform3d back.


Gernot
About | Sitemap | Contact