supergoldorak / kuda

Automatically exported from code.google.com/p/kuda
GNU General Public License v2.0
0 stars 0 forks source link

how to change axis of rotation? #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When rotating a model, I cannot change the axis of rotation.   See the attached 
image.  When I rotate a model, I cannot choose the axis of rotation.  The model 
rotates around world origin (0,0,0).  If I translate the model, then rotate the 
model, the rotation seems to be applied first, then the translation.  this is 
not what I want.

I want simply to rotate the model around it's own center point. See this 
example from three.js:

http://mrdoob.github.com/three.js/examples/canvas_geometry_earth.html

the rotation is achieved by this line:

mesh.rotation.y -= 0.005;

the axis of rotation is not world origin here, it is the model center point.

Original issue reported on code.google.com by raj...@gmail.com on 27 Jun 2011 at 1:31

Attachments:

GoogleCodeExporter commented 9 years ago
The rotation axis is actually defined by the origin of the Transform that is 
selected in the model browser. If you have a model that is not rotating about 
its origin, its probably one of two things:
- the Transform you have selected is not the Transform that directly contains 
the geometry
- if it is the owning Transform, then the geometry is not centered within its 
Transform

Could you send me the model that you are having trouble with?

Original comment by erik.kit...@gmail.com on 21 Jul 2011 at 10:14

GoogleCodeExporter commented 9 years ago
Changing the priority as we await feedback. We can bump it back up once we get 
more details and if it is needed.

Original comment by jpywt...@gmail.com on 9 Aug 2011 at 1:15

GoogleCodeExporter commented 9 years ago
I just saw your response now.  I will take a look at this.  

Original comment by raj...@gmail.com on 19 Sep 2011 at 9:43

GoogleCodeExporter commented 9 years ago
This has been verified in release 1.5.0

Original comment by jpywt...@gmail.com on 11 Oct 2011 at 10:11