[SOLVED]Rotation about the center of a mesh
[SOLVED]Rotation about the center of a mesh
How to set rotation of an object about its center or about one specific point?
Last edited by wsw1231 on Mon Feb 07, 2011 6:06 am, edited 1 time in total.
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
How should I adjust the position of the center of the mesh to the scene origin in 3DS MAX?Radikalizm wrote:What do you mean by 'the rotation looks strange'?
The model you imported probably didn't have its center at the scene origin, so it will rotate around its relative origin inside irrlicht
Is there any better way to do that other than using 3DS MAX?
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
Just set x, y and z components of the position vector of your mesh to 0 in max, or depending on the mesh, you can set the z value so the base of the mesh is at 0 (the z-axis in max is the same as the y-axis in irrlicht)wsw1231 wrote:How should I adjust the position of the center of the mesh to the scene origin in 3DS MAX?Radikalizm wrote:What do you mean by 'the rotation looks strange'?
The model you imported probably didn't have its center at the scene origin, so it will rotate around its relative origin inside irrlicht
Is there any better way to do that other than using 3DS MAX?