How to control armatures in the blender game engine (2.5*)ΒΆ

Benoit Bolsee added support for controlling armatures in the BGE like you can read here.

The individual bones in the BGE (Blender Game Engine) are called ‘channels’. You can get these channels trough the BGE armature object, with BL_ArmatureObject.channels. You can read and write the joint rotation values with the BL_ArmatureChannel.joint_rotation attribute [4]. Don’t forget to call BL_ArmatureObject.update() after you have set the joint rotation.

IK limits will be enforced by blender, so the rotation values you set can differ from the actual rotation values that are set. You can edit the IK limits if you select the armature in pose mode and go to: Properties panel -> Bone -> Inverse Kinematics.

If you have an active IK constraint on a bone, be sure to disable this by removing the target, otherwise the constrain will reset the rotation values.

Previous topic

Creating simulations: the Builder scripts

Next topic

How to efficiently add complex bounding boxes to your objects

This Page