Assuming that you will be using RotationInterpolator you
will want to specify a Transform3D for the 3rd argument
of the constructor that maps the default local coordinate
system for your door to a new coordinate system that lines
up the Y axis with the door hinge and rotates the door
in the appropriate direction. Let's assume that the door
is built so that by default the Y axis runs up the vertical
length of the door and is at the exact middle of the door.
You would need to specify a transform that translates the
axis to the inside edge of the door and maybe to the appropriate
corner if the hinge is the type with the axis of rotation at
the door corner. This should simply be one or two translates.
Ken Causey
ineffable
At 08:39 PM 6/7/00 +0100, you wrote:
>>
>
>Hi,
>
>Thanks, this clears a part of my doubt as well. But I have another
>question regarding this.
>Suppose I have a door and I want to rotate it about the end(edge/hinges)
>in that case what do I do?? when I use the default rotation since it is
>about the y-axis right, then the door actually rotates about the center
>instead of the end. so how can I make it rotate about the edge ??
>
>cheers
>Tina
>
===========================================================================
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".