C# Class SharpNeat.DomainsExtra.WalkerBox2d.LegInterface

Interface onto a walker's leg.
Mostra file Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method Description
LegInterface ( RevoluteJoint hipJoint, RevoluteJoint kneeJoint, Body lowerLegBody, float lowerLegLength ) : System

Construct leg interface onto the provided Box2D leg joints.

SetHipJointTorque ( float torque ) : void

Sets the hip joint's torque.

SetKneeJointTorque ( float torque ) : void

Sets the knee joint's torque.

Private Methods

Method Description
SetJointTorque ( RevoluteJoint joint, float torque ) : void

Method Details

LegInterface() public method

Construct leg interface onto the provided Box2D leg joints.
public LegInterface ( RevoluteJoint hipJoint, RevoluteJoint kneeJoint, Body lowerLegBody, float lowerLegLength ) : System
hipJoint Box2DX.Dynamics.RevoluteJoint
kneeJoint Box2DX.Dynamics.RevoluteJoint
lowerLegBody Box2DX.Dynamics.Body
lowerLegLength float
return System

SetHipJointTorque() public method

Sets the hip joint's torque.
public SetHipJointTorque ( float torque ) : void
torque float
return void

SetKneeJointTorque() public method

Sets the knee joint's torque.
public SetKneeJointTorque ( float torque ) : void
torque float
return void