you can animate more than to. let me explain how to add a bone to my worm as simply as i can:
note: yes x and y get mixed up. just fallow the directions. or skip it and download the blend
extrude the last bone (Bone.001) up a bit (0.400).
extrude that same bone (Bone.001) up again. (1.00)
select the new bone, and turn off “con” (in “editing” (f9))
in the menu right next to the “con” button, select the first bone you made.
that is it for the armature
duplicate the last object in your actual chain (Cube.003) and move it so that it’s center is at the beginning of the 2 bones you made.
edit the new object so that it dose not intersect the one you duplicated
with the new object selected, under object (f7), change the “toObject” value in the rigid body constraint to the name of the previous link in the chain (Cube.003)
done with the dynamics.
select the armature again. go to logic (f4) and add a new property. call the property “object4”, make it a string, and set the value to “Cube”. than edit the value of the property called “object3” and change it to the name of the new physics object you made. (Cube.004)
add 2 more properties. called bcx and bcy. (or whatever you want if you can remember it.) keep them as floats.
in the text window, (shift-f11) add this to the “angles” script:
from GameLogic import *
from math import *
con = getCurrentController()
o = con.getOwner()
Z = (posi)-(pos)
Y = (posi)-(pos)
X = (posi)-(pos)
return sqrt((X)*(X) + (Y)*(Y) + (Z)*(Z))
obj1 = object(o.object1).getPosition()
obj2 = object(o.object2).getPosition()
obj3 = object(o.object3).getPosition()
obj4 = object(o.object4).getPosition() ##<---this is new
dx = obj2 - obj1
dy = obj2 - obj1
dz = obj2 - obj1
o.bax = -degrees(atan2(dx,dy))
o.bay = -degrees(atan2(sqrt(dy*dy + dx*dx),dz))
dx = obj3 - obj2
dy = obj3 - obj2
dz = obj3 - obj2
o.bbx = -degrees(atan2(dx,dy))
o.bby = -degrees(atan2(sqrt(dy*dy + dx*dx),dz))
##this is new##
dx = obj4 - obj3
dy = obj4 - obj3
dz = obj4 - obj3
o.bcx = -degrees(atan2(dx,dy))
o.bcy = -degrees(atan2(sqrt(dy*dy + dx*dx),dz))
go into pose mode with the armature, and select the smaller new bone you made. in the action window, make a new action. IMPORTANT: make sure there are no channels besides the ONE bone we are working with. call it “bone3X”
insert a keyframe for rot at the fallowing frames-values.
frame 1 RotY = -180
frame 91 RotY = -90
frame 181 = RotY = 0
frame 271 = RotY = 90
frame 361 = RotY = 180
select all the curves in the IPO window (shift f6) and move them back -181 on the x axis.
repeat 11-13 for the second new bone on the X axis. call the action bone3Y
add 2 actuators to the armature. connect them to the “and” controller. make them both actions. change “play” to “property” set ones action to bone3X and the property to bcx. set the other to bone3Y and the property bcy.
just add something to the worm mesh to be skinned onto the new bone. i think thats it…