Hello, I want to rotate a bone with Python, despite the fact that I have found the answer to the question, it does not work for me.
import bge
import time
def main():
armature = bge.logic.getCurrentScene().objects['Armature']
bone = armature.channels['Bone']
bone.joint_rotation = [0, 0, time.time()]
armature.update()
print(bone.rotation_euler)
Am I missing something?
Attachments
BGEMoveBone.zip (75 KB)