Thuf
12-12-2007 02:54:48
I'm very new to PythonOgre and I'm having some trouble getting an object setup in an area. I get the object in there fine but its all screwy and out of position from where I want it, also upside down.
c.node.setPosition(ogre.Vector3(30, 5, 30))
This is how I am changing the position of it
c.node.setOrientation(ogre.Quaternion(ogre.Degree(180), ogre.Vector3.UNIT_Y))
I found this example, wouldn't this rotate it around the Y axis by 180 degrees? (it doesn't seem to be doing so for me but maybe my axes are out of wack
Is there a better way at doing this?
c.node.setPosition(ogre.Vector3(30, 5, 30))
This is how I am changing the position of it
c.node.setOrientation(ogre.Quaternion(ogre.Degree(180), ogre.Vector3.UNIT_Y))
I found this example, wouldn't this rotate it around the Y axis by 180 degrees? (it doesn't seem to be doing so for me but maybe my axes are out of wack
Is there a better way at doing this?