Any ideas on how to make a character walk on stairs using code.
I want to make a single walk cycle animation and have the character lift its legs according to the height of the current terrain.
Thanks, Any Help and Solutions will be greatly appreciated.
Step 2: parent the IK node bones to specific parent bones, [ie. the torso for hands, and base for the feet.] Some assembly may be acquired.:eyebrowlift2:
The hands to the center of gravity:
Step 3: Making the deformative bones follow the hands and the feet via Bone constraints, for easy help with this, doing one side, then duplicating and mirroring will copy the constraints but to the duplicated bones instead of the originals. Very helpful indeed.
[Notice, before any IK constraints, the hand will disconnect from the arm in pose mode.]
We want it to follow, so with the forearm selected, goto the bone constraints tab, select the constraint “Inverse Kinematics,” enter the obj name for the armature in the Target slot, then the bone you want it to follow in the bone slot. Don’t forget that the chain length needs to match the number of bones you’re trying to effect, the arms should be around 2 and so should the legs. Do so with the lower legs to the feet as well and you should be able to free move the limbs and crouch by simply lowering the center of gravity!
PS the Center of gravity should be parented with an offset to the base, and the torso and hips to the center, that way when the center drops, so do the hips and torso to simulate a crouch. also, the feet childrent should all be parented to the right bone in the foot, not the leg, not the heel, not the toes, that is important to know when you see the bone move but the foot stay.
honestly i dont, all of the rig above was just blender 2.72s internal meta rig, and i just rigged it to show how to us the solvers, but i can whip a quickie up for you if you want, with a nice mesh too if needed.