C# Class SharpNeat.DomainsExtra.WalkerBox2d.LegInterface

Interface onto a walker's leg.
Afficher le fichier Open project: colgreen/sharpneat Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
SetJointTorque ( RevoluteJoint joint, float torque ) : void

Method Details

LegInterface() public méthode

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
Résultat System

SetHipJointTorque() public méthode

Sets the hip joint's torque.
public SetHipJointTorque ( float torque ) : void
torque float
Résultat void

SetKneeJointTorque() public méthode

Sets the knee joint's torque.
public SetKneeJointTorque ( float torque ) : void
torque float
Résultat void