Constructor and Description |
---|
CompositeEffector(java.lang.String name,
HingeEffector[] effectors)
Instantiates a new UniversalEffector and initializes all fields to zero
|
Modifier and Type | Method and Description |
---|---|
float |
getDesiredAngle(int i) |
HingeEffector |
getEffector(int i) |
float |
getSpeed(int i) |
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 movement speeds
|
int |
size() |
public CompositeEffector(java.lang.String name, HingeEffector[] effectors)
name
- Effector namepublic void setEffectorValues(float maxGain, float... values)
ax1
- Axis 1 speedax2
- Axis 2 speedpublic void resetAfterAction()
IEffector
resetAfterAction
in interface IEffector
resetAfterAction
in class Effector
public float getSpeed(int i)
public float getDesiredAngle(int i)
public HingeEffector getEffector(int i)
public int size()