------ =_NextPart_001_01C0A7E1.5FF58A02
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I think what your asking is "why does my object move when I rotate it?"
=A0
Well, again I assume that you have a Shape3D under a TransformGroup, =
and
you are rotating this transform.=A0 Rotations occur about the origin of
the transform, so if the transform has any non-zero translation
components, the object will move about the origin.
=A0
You may want two transform groups:
=A0
=A0=A0=A0 TG1
=A0=A0=A0=A0=A0 |
=A0=A0=A0 TG2
=A0=A0=A0=A0=A0 |
=A0=A0=A0 Shape3D
=A0
Perform the rotations on TG2, but the translations on TG1
=A0
Hope this helps.=A0 If not, show some code snippets or a depiction of =
your
scene graph.
=A0
-Lee
-----Original Message-----
From: silvano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 9:26 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Could you help me in any question?
=A0
Could you tell me i can do when:
=A0
if the object is rotated in x, y, z. it moves with the object instead =
of
stay fixed.
=A0
I'd like to know how rotate my obect when this happened axles ( x , y =
,z
) rotate together with my object.
------ =_NextPart_001_01C0A7E1.5FF58A02
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff size=2>I
think what your asking is "why does my object move when I rotate
it?"</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff size=2>Well,
again I assume that you have a Shape3D under a TransformGroup, and you are
rotating this transform. Rotations occur about the origin of the
transform, so if the transform has any non-zero translation components, the
object will move about the origin.</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff size=2>You
may want two transform groups:</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2> TG1</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2> |</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2> TG2</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001> <FONT face=Arial
color=#0000ff size=2> |</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001> <FONT face=Arial
color=#0000ff size=2>Shape3D</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2>Perform the rotations on TG2, but the translations on
TG1</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff size=2>Hope
this helps. If not, show some code snippets or a depiction of your scene
graph.</FONT></SPAN></DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=118401615-08032001><FONT face=Arial color=#0000ff
size=2>-Lee</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid;
MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> silvano
[mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Thursday, March 08, 2001
9:26 AM<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Subject:</B> [JAVA3D]
Could you help me in any question?<BR><BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Could you tell me i can do when:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>if the object is rotated in x, y, z. it moves
with the object instead of stay fixed.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I'd like to know how rotate my obect when this
happened axles ( x , y ,z ) rotate together with my
object.</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------ =_NextPart_001_01C0A7E1.5FF58A02--
===========================================================================
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".