1

我正在使用从 Kinect 获得的用户数据进行模型的实时映射。我可以使用提供骨骼列表的 bge.types.BL_ArmatureObject().channels 访问单个骨骼。我无法更改位置骨骼。我尝试使用 rotation_euler 给它一些旋转,但它没有效果。请告诉我该怎么做。

4

1 回答 1

3

也许有点晚了,但是对于 blender >= 2.5 这应该可以解决问题:

# Get the whole bge scene
scene = bge.logic.getCurrentScene()
# Helper vars for convenience
source = scene.objects

# Get the whole Armature
main_arm = source.get('NAME OF YOUR ARMATURE')

main_arm.channels['NAME OF THE BONE YOU WANT TO ROTATE'].joint_rotation[ x, y ,z] # x,y,z = FLOAT VALUE

main_arm.update()

我还在一个广泛的教程中写下了这一点,从这里开始:http ://www.warp1337.com/content/blender-robotics-part-1-introduction-and-modelling

于 2013-03-18T09:05:39.147 回答