# [solved] Rotating a node without using Pitch, Yaw and Roll

Eldritch

16-04-2007 15:37:56

I would like to be able to rotate a scene node without using Pitch, Yaw and Roll. The reason being that these functions are insane.. if I want to rotate my scene node 181 degrees, for example, it will count as if I am rotating it 1 degree according to how it looks... which is awful.. How would I be able to rotate my scene node in a more correct way?

smernesto

16-04-2007 21:35:31

I donÂ´t know much about rotations but maybe this will be useful for you.

http://www.ogre3d.org/wiki/index.php/Quaternion_and_Rotation_Primer

Sweenie

17-04-2007 07:04:07

if I want to rotate my scene node 181 degrees, for example, it will count as if I am rotating it 1 degree according to how it looks

???

Are you sure your rotating by degrees and not radians?
Like this,

`mySceneNode.Yaw(New Degree(181))`

Eldritch

17-04-2007 09:27:52

if I want to rotate my scene node 181 degrees, for example, it will count as if I am rotating it 1 degree according to how it looks

???

Are you sure your rotating by degrees and not radians?
Like this,

`mySceneNode.Yaw(New Degree(181))`

Yes, I use Degree.

Bekas

17-04-2007 11:21:25

Can you post a sample that displays the problem?

In the CelShading demo, when I replace
``` // Add entity to the root scene node sceneMgr.RootSceneNode.CreateChildSceneNode().AttachObject(ent); ```
with
``` // Add entity to the root scene node SceneNode sn = sceneMgr.RootSceneNode.CreateChildSceneNode(); sn.AttachObject(ent); sn.Yaw(new Degree(181)); ```

It works correctly.

Eldritch

17-04-2007 13:07:25

It is okey, I solved it by using Rotate() on the scene node.