chetto1983 / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Need to rotate XY co -ordinates only #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. How should i disable the Z axis rotation?
2. I need Rotate the object in Left-Right, Right-Left direction only.
3. Disable The Bottom-Top, Top-Bottom Direction of Rotation

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by vinj...@gamillc.com on 13 Jun 2013 at 6:32

GoogleCodeExporter commented 8 years ago
The most convenient way to implement this is slightly modifying the mouse 
control code, just discarding the x-axis rotations.

Goto definition of viewer's mouseMoveHandler method, comment this line(605):

  this.rotMatrix.rotateAboutXAxis(rotX);

Then goto touchMoveHandler method, comment this line(682):

  this.rotMatrix.rotateAboutXAxis(rotX);

And it will be ok.

Original comment by Humu2...@gmail.com on 13 Jun 2013 at 5:00