de.jreality.tools
Class AirplaneTool
java.lang.Object
de.jreality.scene.tool.AbstractTool
de.jreality.tools.AirplaneTool
- All Implemented Interfaces:
- Tool
public class AirplaneTool
- extends AbstractTool
- Author:
- gonska
Fly Tool that behaves like an airplane.
Use on Node which schould be moved.
TODO:
- make mouse controling available
- make roll,up & down
more lazy(an airplane can not react instantly)
- what about controling the flight
with respect to velocity (no velocity: no turning around?)
Methods inherited from class de.jreality.scene.tool.AbstractTool |
addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, removeCurrentSlot, setDescription |
AirplaneTool
public AirplaneTool()
activate
public void activate(ToolContext tc)
- Description copied from interface:
Tool
- This method is called when the tool gets activated. Note that
it will never be called if the tool is always active.
- Specified by:
activate
in interface Tool
- Overrides:
activate
in class AbstractTool
- Parameters:
tc
- The current tool context
perform
public void perform(ToolContext tc)
- Description copied from interface:
Tool
- This method is called when the tool is activated and any
AxisState or TransformationMatrix of the current slots changes.
- Specified by:
perform
in interface Tool
- Overrides:
perform
in class AbstractTool
- Parameters:
tc
- The current tool context
getRollSpeed
public double getRollSpeed()
setRollSpeed
public void setRollSpeed(double rollSpeed)
getRollUpDownSpeed
public double getRollUpDownSpeed()
setRollUpDownSpeed
public void setRollUpDownSpeed(double rollUpDownSpeed)
getRunFactor
public double getRunFactor()
setRunFactor
public void setRunFactor(double runFactor)
getThrustFactor
public double getThrustFactor()
setThrustFactor
public void setThrustFactor(double thrustFactor)
getThrustHesitation
public double getThrustHesitation()
setThrustHesitation
public void setThrustHesitation(double thrustHesitation)
isUpDownInvert
public boolean isUpDownInvert()
setUpDownInvert
public void setUpDownInvert(boolean upDownInvert)