I think the rotation interpolator rotates around the origin. Try building
your object at the origin, then putting the rotation interpolator on it,
then wrapping the whole thing in a transform and moving it where you want.
Dave Yazel
> ----------
> From: Andy K[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Tuesday, December 05, 2000 10:05 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Rotating multiple Objects
>
> Hi..
>
> I'm a little confused.
>
> I've worked my way gradually through the sun tutorial but am now stuck.
> What I wish to do is rotate a number of objects around a central local
> axis (Local the the group of objects that is).
>
> I've created the cubes (3 of them)
> Translated them to the positions I want adding the individual tranform
> objects
> to individual transformgroups and then adding the appropriate cube.
>
> I then create a group and add a transformgroup(rotation) to it.
>
> I've then added the (three) transform groups (containing the individual
> cubes)
> to the group.
>
> Every thing is fine if I simply miss out the transformgroup(rotation) on
> the
> group
> but if I do the rotation the cubes disappear.
>
> I think this is because the object group is being rotated around some
> global
> axis
> (ie maybe the camera).
>
> So how do i rotate the cubes around their central axis point instead of
> the
> camera axis.
>
> Is this the correct way to do this or should I simple move the camera and
> if
> so how do i do that.
>
> I know this maybe a bit noddy but everyone has to start somewhere
> (unfortunately
> for me thats right back at the begining)
>
> Thanks in advance
>
> Andy Knight
> Software Engineer
> Syngenta
>
> ==========================================================================
> =
> 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".
>
===========================================================================
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".