Human = function () {

	this.sets = {
		speed : 0.3,
		thighRange : 50,
        thighBase : 100,
        calfRange : 30,
        calfOffset : -1.57,
        armRange : 55,
        foreArmRange : 20,
        foreArmOffset : -1.57, 
        gravity : 0.88
	};

	this.bones = {
		body : new Human.bone( 0,0,0,   80,20,36 ),
		neck : new Human.bone( 0,0,0,   25,10,10 ),
		head : new Human.bone( 0,0,0    ),

		LeftUpLeg : new Human.bone(   200,200,-10,  50,15,15 ),
		LeftLowLeg : new Human.bone(  0,0,-10,      60,10,10 ), 
		RightUpLeg : new Human.bone(  200,200,10,   50,15,15 ),
		RightLowLeg : new Human.bone( 0,0,10,       60,10,10 ),
		
		LeftUpArm : new Human.bone(   0,0,-22,      40,10,10 ),
		LeftLowArm : new Human.bone(  0,0,-22,      50,7,7   ),
		RightUpArm : new Human.bone(  0,0,22,       40,10,10 ),
		RightLowArm : new Human.bone( 0,0,22,       50,7,7   )
	};

	
	this.bones.body.x = this.bones.LeftUpLeg.x;
	this.bones.body.y = this.bones.LeftUpLeg.y;
	this.bones.neck.x = this.bones.body.getPin().x;
	this.bones.neck.y = this.bones.body.getPin().y;
	this.bones.head.x = this.bones.neck.getPin().x;
	this.bones.head.y = this.bones.neck.getPin().y;

	this.bones.LeftLowLeg.x = this.bones.LeftUpLeg.getPin().x;
	this.bones.LeftLowLeg.y = this.bones.LeftUpLeg.getPin().y;
	this.bones.RightLowLeg.x = this.bones.RightUpLeg.getPin().x;
	this.bones.RightLowLeg.y = this.bones.RightUpLeg.getPin().y;

	this.bones.LeftUpArm.x = this.bones.body.getPin().x;
	this.bones.LeftUpArm.y = this.bones.body.getPin().y;
	this.bones.LeftLowArm.x = this.bones.LeftUpArm.getPin().x;
	this.bones.LeftLowArm.y = this.bones.LeftUpArm.getPin().y;
	this.bones.RightUpArm.x = this.bones.body.getPin().x;
	this.bones.RightUpArm.y = this.bones.body.getPin().y;
	this.bones.RightLowArm.x = this.bones.RightUpArm.getPin().x;
	this.bones.RightLowArm.y = this.bones.RightUpArm.getPin().y;

	this.running = true;
	this.vx = 0;
	this.vy = 0;
	this.angle = 0;
	this.zw = 0;
	this.zh = 0;
	this.ToRad = Math.PI / 180;
}
Kinematic Human
@author _ishibashijun - http://jsdo.it/_ishibashijun