public class AirplaneTool extends AbstractTool
Constructor and Description |
---|
AirplaneTool() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ToolContext tc)
This method is called when the tool gets activated.
|
double |
getRollSpeed() |
double |
getRollUpDownSpeed() |
double |
getRunFactor() |
double |
getThrustFactor() |
double |
getThrustHesitation() |
boolean |
isUpDownInvert() |
void |
perform(ToolContext tc)
This method is called when the tool is activated and any
AxisState or TransformationMatrix of the current slots changes.
|
void |
setRollSpeed(double rollSpeed) |
void |
setRollUpDownSpeed(double rollUpDownSpeed) |
void |
setRunFactor(double runFactor) |
void |
setThrustFactor(double thrustFactor) |
void |
setThrustHesitation(double thrustHesitation) |
void |
setUpDownInvert(boolean upDownInvert) |
addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, removeCurrentSlot, setDescription
public void activate(ToolContext tc)
Tool
activate
in interface Tool
activate
in class AbstractTool
tc
- The current tool contextpublic void perform(ToolContext tc)
Tool
perform
in interface Tool
perform
in class AbstractTool
tc
- The current tool contextpublic double getRollSpeed()
public void setRollSpeed(double rollSpeed)
public double getRollUpDownSpeed()
public void setRollUpDownSpeed(double rollUpDownSpeed)
public double getRunFactor()
public void setRunFactor(double runFactor)
public double getThrustFactor()
public void setThrustFactor(double thrustFactor)
public double getThrustHesitation()
public void setThrustHesitation(double thrustHesitation)
public boolean isUpDownInvert()
public void setUpDownInvert(boolean upDownInvert)