Constructor and Description |
---|
HingeEffector(java.lang.String name)
Instantiates a new HingeJoint effector and initializes all fields to zero
|
Modifier and Type | Method and Description |
---|---|
float |
getDesiredAngle() |
float |
getGain() |
float |
getSpeed() |
double |
getSpeedRadians() |
boolean |
hasChanged() |
void |
resetAfterAction()
Called to allow an effector to reset its state after it has been read for
action.
|
void |
setEffectorValues(float maxGain,
float... values)
Set axis speed
|
public HingeEffector(java.lang.String name)
name
- Hinge Joint namepublic void setEffectorValues(float maxGain, float... values)
speed
- New speedpublic boolean hasChanged()
public void resetAfterAction()
IEffector
resetAfterAction
in interface IEffector
resetAfterAction
in class Effector
public float getSpeed()
public double getSpeedRadians()
public float getDesiredAngle()
public float getGain()