public abstract class Body.BodyTractor
extends java.lang.Object
implements java.io.Serializable
Body
physics, the tractors are rendered individually.Constructor and Description |
---|
BodyTractor(Vector grip) |
Modifier and Type | Method and Description |
---|---|
void |
addMileage(double addMileage)
adds to the mileage
|
double |
calculateForce()
TODO change return type to Vector to allow steering
TODO add parameter to allow steering
The tractor's speed must be set beforehand.
|
Body.BodyTractor |
clone() |
Vector |
getGrip() |
double |
getMaxEnergyConsumption() |
float |
getMileage() |
Angle |
getSteering() |
double |
getTrackspeedPct() |
void |
setTrackspeedPct(double trackspeedPct)
sets the tractor's speed.
|
public BodyTractor(Vector grip)
public void addMileage(double addMileage)
addMileage
- [m]public double calculateForce()
public Body.BodyTractor clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public double getMaxEnergyConsumption()
public float getMileage()
public Angle getSteering()
public double getTrackspeedPct()
public void setTrackspeedPct(double trackspeedPct)
#calculateForce(double)
[-1;1]
- tractor's speed