How to rotate a object without changing the axis by SIO2?
3 posters
How to rotate a object without changing the axis by SIO2?
I am now doing a project requiring to rotate a cube freely in X, Y, and Z direction,
but I found that while X and Y axis will chenge when retating the cube, the Z axis will always points to the same direction,
whitch in resault causing a lot of problems.
Is there any posibility that I can fix all the three axises( x, y, z) while rotating by a cube?
but I found that while X and Y axis will chenge when retating the cube, the Z axis will always points to the same direction,
whitch in resault causing a lot of problems.
Is there any posibility that I can fix all the three axises( x, y, z) while rotating by a cube?
Ubicomp- Posts : 7
Join date : 2009-07-22
Re: How to rotate a object without changing the axis by SIO2?
A bit of linear algebra will do the trick
Re: How to rotate a object without changing the axis by SIO2?
Sorry, I still can't really get the picture.
I look throw some .h files of SIO2, and I noticed that the rotation in SIO2 is implemented by "Euler angles" ( please let me know if it is not correct), which can cause "Gimbal Lock", and "Gimbal Lock" is also a problem that I faced.
So is there a solution really requiring "a little linear algebra" that can fix my problem?
I look throw some .h files of SIO2, and I noticed that the rotation in SIO2 is implemented by "Euler angles" ( please let me know if it is not correct), which can cause "Gimbal Lock", and "Gimbal Lock" is also a problem that I faced.
So is there a solution really requiring "a little linear algebra" that can fix my problem?
Ubicomp- Posts : 7
Join date : 2009-07-22
Similar topics
» EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!
» Camera rotate about y-axis
» how to not rotate around object
» Rotate the camera instead of the object...
» rotate a physics object?
» Camera rotate about y-axis
» how to not rotate around object
» Rotate the camera instead of the object...
» rotate a physics object?
Permissions in this forum:
You cannot reply to topics in this forum