Ahh, okay, I was being a bit stupid on this one
I was trying to get my mesh to rotate about it's center point and was being dumb

just need two transform groups and one mouse rotate

looks like this
BG - root
TG - objTransform
PBG - pivot branch group
PTG - pivot transform
Primitive

so, you first move the PTG to make the point (0,0,0) to be the center of your
object
So, if you have a flat plane that was 10 x 10
you would move the PTG (5,0,-5)

then you create a mouserotate behavior with the TG (objTransform) 
this will then rotate your primitive about the center of the object

if you want the object to be rotating about any arbitrary point. Such as making
a planet rotate about the sun.
Make the PTG(pivot transform) move the planet, but use the rotate on the
transform group above the pivot transform

Scott


Scott Decker
Research Scientist
Pacific Northwest National Labs
[EMAIL PROTECTED]


=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to