Is there any way to control a character made with Adobe CS4 Bone Tool via keyboard buttons? Its limbs are linked up by IK chains built by Bone Tool.
A:
import fl.ik.*;
use
IKArmature IKBone IKJoint IKMover
addEventListener(keyboardEvent.KEY_DOWN, keyDownHandler);
function keyDownHandler(event:Event){
if (event.keyCode == Keyboard.UP)
{
// do your magic with IKMover moveTo() method
}
}
PeanutPower
2010-01-22 15:09:23
Yes. IKMover works, but it only moves a bit. Seems constraints are set, but I haven't.
Shivan Raptor
2010-01-22 15:36:58
try setting .rotationConstrained on the IKJoint to false or adjusting .rotationMin and .rotationMax
PeanutPower
2010-01-22 15:42:11
Ok . It now works. Seems I need some trainings to control my bones.
Shivan Raptor
2010-01-22 15:51:36