Hi everyone:)
My question is, how to display the degrees of rotation of an object in BGE?
Hi everyone:)
My question is, how to display the degrees of rotation of an object in BGE?
The fast way:
x, y, z = object.worldOrientation.to_euler()
print(degrees(x), degrees(y), degrees(z))
This will print the euler angles to the console.
Alternatively, you could assign x, y, z to three properties, enable debug, and have them displayed in real time during the game.
you need to convert radians to degrees
Thanks for the replies :yes: