First : Sorry if I made mistakes, English isn’t my natural language.
So : I’m not a begginer in programming, but in Blender. So I searched a way to get an object’s rotation with Python, I found some ways, but no one works.
The last one :
from bge import logic cont = logic.getCurrentController() obj = cont.owner rotation = obj.worldOrientation.to_euler() obj['xRotation'] = rotation.x
I wanna store the “rotation.x” to “xRotation” property, but it doesn’t work. “obj.worldOrientation.to_euler()” returns nothing.
Is there an another way to do that ?