NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
September 26, 2020, 12:58:54 pm

Never too late. Never too early. ...Wisdom

 Pages: [1]   Go Down
 Author Topic: how to transform about an axis a rotation using Matrix3DTransformation ?  (Read 17231 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member

Offline

Posts: 1796

http://weelookang.blogspot.com

 « Embed this message on: August 22, 2012, 12:27:17 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Hi prof!
according to

i can transform a rotation about an axis of my choice say x,y,z = 0,1,0 meaning y-axis.

i changed i to j for the syntax creating italics in the words
for(int j=0;j<n; j++){

rotations[j] = Matrix3DTransformation.rotationY(theta[j]);
}

the result is not what i wanted.

the sphere i added are rotating about it own axis, i want them rotate the coordinate system X,Y,Z

i wish to make the sphere move as if they were connected to the rectangle shapes
like in the video
http://www.nationalstemcentre.org.uk/elibrary/resource/2096/wave-machine/

no one seems to know as i have posted here a few days back.

any ideas?
thanks!

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
• Please feel free to post your ideas about how to use the simulation for better teaching and learning.
• Post questions to be asked to help students to think, to explore.
• Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!
 rotation.png (98.93 KB, 1288x766 - viewed 2112 times.)  Wave Machine.png (1386.42 KB, 1269x713 - viewed 2793 times.) *** There are 1 more attached files. You need to login to acces it! « Last Edit: August 22, 2012, 12:36:19 pm by lookang » Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3085

 « Embed this message Reply #1 on: August 22, 2012, 05:27:45 pm » posted from:,,Satellite Provider

There is a Rotate property for Tex3d GUI element.

Matrix3DTransformation can be  used to transform a know shape object.
To transform the text , information about text is required-however, it is not available.

May be there are some new function in java3D which is possible to do this. However, I do not know.
May be you can ask Paco directly. Sorry! :-(
 Logged
lookang
Hero Member

Offline

Posts: 1796

http://weelookang.blogspot.com

 « Embed this message Reply #2 on: August 24, 2012, 03:16:04 pm » posted from:Singapore,,Singapore

done!
 *** There are 1 more attached files. You need to login to acces it! Logged
 Pages: [1]   Go Up
Never too late. Never too early. ...Wisdom

 Related Topics Subject Started by Replies Views Last post how to make x and y axis automatically on the drawing panel Questions related to EJS lookang 4 14591 August 10, 2007, 02:35:48 pm by lookang any example xml on angle always made with positive x axis Questions related to EJS lookang 7 13079 August 15, 2007, 02:37:23 pm by Fu-Kwun Hwang Complex numbers and Laplace transform Question related to Physics or physics related simulation j142 1 14098 June 24, 2009, 06:37:56 pm by Fu-Kwun Hwang Rotation in 3D (Does the order of rotation matter?) misc Fu-Kwun Hwang 0 8858 February 07, 2010, 03:49:45 pm by Fu-Kwun Hwang Rotation in 3D (Does the order of rotation matter?) misc ahmedelshfie 0 13390 May 21, 2010, 01:46:52 am by ahmedelshfie
Page created in 0.06 seconds with 22 queries.since 2011/06/15