Woden - Rotate an Object from absolute referential

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Woden - Rotate an Object from absolute referential

MerwanOuddane
Hello everyone,
 
I am currently making a little demo with woden and I would like to rotate a cube, not from the relative referential but from the absolute one ( rotate X always rotate in the same direction even if I previously have rotated Y ).
 
What currently happens is that when I rotate the cube, the referential rotates as well...
 
Does anyone know how to counter this ?
 
Thanks
Merwan
Reply | Threaded
Open this post in threaded view
|

Re: Woden - Rotate an Object from absolute referential

Ronie Salgado
Hello Merwan,

Currently is not possible because the only way to represent rotations is to use a matrix. I have to add support for quaternions, which gives me an opportunity to also add Euler angles.
When I add support for Euler angles, you wil be able to do what you want easily.

Currently, you have to use node orientation: (WDMatrix3 xrot: angle) to achieve what you are trying to do.

Greetings,
Ronie

2015-05-04 11:55 GMT-03:00 <[hidden email]>:
Hello everyone,
 
I am currently making a little demo with woden and I would like to rotate a cube, not from the relative referential but from the absolute one ( rotate X always rotate in the same direction even if I previously have rotated Y ).
 
What currently happens is that when I rotate the cube, the referential rotates as well...
 
Does anyone know how to counter this ?
 
Thanks
Merwan

Reply | Threaded
Open this post in threaded view
|

Re: Woden - Rotate an Object from absolute referential

MerwanOuddane
Thanks for your answer ronnie, I did not manage to do it with node orientation, can you please be more specific  ?
 
De : Ronie Salgado
Envoyé : ‎mardi‎ ‎12‎ ‎mai‎ ‎2015 ‎09‎:‎44
À : Any question about pharo is welcome
 
Hello Merwan,

Currently is not possible because the only way to represent rotations is to use a matrix. I have to add support for quaternions, which gives me an opportunity to also add Euler angles.
When I add support for Euler angles, you wil be able to do what you want easily.

Currently, you have to use node orientation: (WDMatrix3 xrot: angle) to achieve what you are trying to do.

Greetings,
Ronie

2015-05-04 11:55 GMT-03:00 <[hidden email]>:
Hello everyone,
 
I am currently making a little demo with woden and I would like to rotate a cube, not from the relative referential but from the absolute one ( rotate X always rotate in the same direction even if I previously have rotated Y ).
 
What currently happens is that when I rotate the cube, the referential rotates as well...
 
Does anyone know how to counter this ?
 
Thanks
Merwan