I think if you place each object in its own Locale and then place the object
where you want
to in the universe, the add the behavior to it, it works.
I am just a beginner, and ran into the same problem. It works for basic
shapes.
Hope this helps somewhat.
Zak
----- Original Message -----
From: "Jochen Vandewalle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2001 2:31 AM
Subject: [JAVA3D] object axis rotation
We are constructing an application to construct machines in 3D. We would
like to make it possible to rotate each object around its own axis. The
problem is that the object is always rotating over the center point of the
scene instead of the center point of the object. Even if we translate the
object first to the center of the scene, rotate, and translate the object
back to its center point it's still doesn't work. The geometry is loaded
from a VRML file. So the position is stored in the geometry. Perhaps this is
the problem.
Included in this mail you find the PickRotateBehavior and the RotateBehavior
we use to rotate the objects.
The Point3d center you find in the RotateBehavior is the center point of the
object. <<PickRotateBehavior.java>> <<RotateBehavior.java>>
Does anyone have any sugestions to solve this problem???
---------------------------------------------------------------------
Jochen Vande Walle
Software Developer
QMatics
Bruggesteenweg 112
8830 Hooglede - België
---------------------------------------------------------------------
Tel. +32 51 272 400
Fax. +32 51 272 401
---------------------------------------------------------------------
mailto:[EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".