Hi there guys,
I’m trying to move an armature in response to keyboard within the Game Engine.
I tryied to change the position of the bones programmatically through python scripting, but nothing moves in the scene.
I tryied to use armature.update(), and it didn’t work (In Editor I can, but in the Game Engine, I can’t).
Every tutorial I see in the internet include Animations for moving the armature.
I would like to know if and how can I move the armature in the Game Engine running without involving animations.
My goal is: move them according to external commands coming from the network.
Is always needed to create animation for this kind of stuff? Can’t I modify the scene programmatically in the Game Engine running?
Thanks in advance,
bast-environment.blend (1.28 MB)
Hmmm… I think I’ve done it before, but that was a long time ago, and I don’t quite remember how it was done.
However, BluePrintRandom should know, if I remember correctly he did a lot of that.
Have you tried searching the Game Engine section of the forum?
This is that section, no?
Just a motion actuator, if i understand you correctly!
I think a motion actuation doesn’t solve the problem.
What I want is write a python method to move/rotate the specified bone whose name that is passed as parameter.
I already did one version, but It works inside blender, and doesn’t work inside Game Engine.
Hi, if you check the blend file I posted you’ll see all the required elements. I’m getting the foot_hook bone from the armature by name and moving it manually. The “armature” actuator just tells blender to update the pose each frame after I’ve made changes. You can get any bone by name, change its rotation and location and have it update in real time. No actions required.
Maybe you’re using bpy when you should be using bge?