Hi, Selim.
First of all be sure that , you captured all the correct transformGroup
objects from a loader.
After that, set point B transforGroup and then you can easly translate and
rotate it by using the code below.
tg.getTransform(vpT3D); // tg TransformGroup of point
B that captured from a loader.
vpT3D.get(matrix);
translate.x = matrix.m03 - 0.1f;
translate.y = matrix.m13 - 0.01f;
translate.z = matrix.m23 + 0.0f;
t3d2.rotY(-Math.PI/180.0f);
vpT3D.mul(t3d2,vpT3D);
vpT3D.setTranslation(translate);
tg.setTransform(vpT3D);
Ergun Guvenc
Basari Telekom.
Turkey.
PS : Hocam ne tur bir aplikasyon ile ugrasiyorsun.
-----Original Message-----
From: selim çelenkoğlu [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 4:37 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] loaded vrml model center ??
Hi,
I am programming a jointed object. I imported a vrml model but i cant
rotate
it by transform3d. It is rotated around its center.
--
| |
| | --> loaded vrml model..
|a |
| |
| |
--
b
I put object in universe to B point, after that i rotated it. It is rotated
about A but i want B as a reference. Is it possible to change the center of
loaded object? How? or What should i do?
and another difficulty i dont know A point. :(( I am newbie to Java3d and
3d, maybe this is silly question sorry..
Thank you
Selim
==========================================================================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".