public class UAVEngine extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | FOREPROP | 
| static int | JET | 
| static int | REARPROP | 
| Constructor and Description | 
|---|
| UAVEngine(Vector3D position,
         int type,
         double maxPower)Creates a new instance of UAVEngine | 
| Modifier and Type | Method and Description | 
|---|---|
| void | setPower(double power)Sets the engine power. | 
| Vector3D | thrustVector()Computes the thrust being applied by the engine with the current power setting | 
| Vector3D | torqueVector()Calculates the total moment about the rigid body center of gravity due to 
 due to the engine operation. | 
public static final int FOREPROP
public static final int REARPROP
public static final int JET
public UAVEngine(Vector3D position, int type, double maxPower)
type - of propulsion (rear propeller, front propeller, jet)position - of the engine in body coordinatespublic void setPower(double power)
power - settingpublic Vector3D thrustVector()
public Vector3D torqueVector()