|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.VehiclePhysics
public class VehiclePhysics
This is a model of vehicle physics settings.
Nested Class Summary | |
---|---|
static class |
VehiclePhysics.Brakes
Model of brake physics parameters. |
static class |
VehiclePhysics.Engine
Model of engine physics parameters. |
static class |
VehiclePhysics.PhysicsSetting
Abstraction of a usual physics setting (base_value, step_size, num_steps). |
static class |
VehiclePhysics.SlipCurve
Model of a tire slip curve. |
static class |
VehiclePhysics.TireCompound
Model of a tire compound. |
static class |
VehiclePhysics.UpgradeIdentifier
|
static class |
VehiclePhysics.WheelDrive
Abstraction of possible Wheel drive settings. |
Field Summary | |
---|---|
static VehiclePhysics.TireCompound |
FALLBACK_COMPOUND
|
Constructor Summary | |
---|---|
VehiclePhysics()
|
Method Summary | |
---|---|
VehiclePhysics.Brakes |
getBrakes()
Gets the model for all four brakes. |
VehiclePhysics.Engine |
getEngine()
Get engine related physics parameters. |
VehiclePhysics.PhysicsSetting |
getFrontWingRange()
Gets the front wing range of settings. |
VehiclePhysics.PhysicsSetting |
getFuelRange()
Gets the phyiscs setting for fule range in the selected units. |
VehiclePhysics.PhysicsSetting |
getFuelRangeL()
Gets the phyiscs setting for fule range in liters. |
VehiclePhysics.UpgradeIdentifier[] |
getInstalledUpgrades()
Gets the list of installed upgrades. |
short |
getNumForwardGears()
Gets the number of forward gears. |
int |
getNumTireCompounds()
Gets the number of available VehiclePhysics.TireCompound s. |
VehiclePhysics.TireCompound |
getTireCompound(int index)
Gets the VehiclePhysics.TireCompound by the given index. |
VehiclePhysics.TireCompound |
getTireCompoundBestGrip(Wheel wheel)
Gets the VehiclePhysics.TireCompound for the given wheel, that has the best grip compared to allother available ones. |
VehiclePhysics.PhysicsSetting |
getTirePressureRange(Wheel wheel)
Gets the range of possible values for tire pressure. |
java.io.File |
getUsedTBCFile()
Gets TBC tire compound file, currently in use. |
float |
getWeightOfOneLiterOfFuel()
Gets the weight of one liter of fuel in kg. |
VehiclePhysics.WheelDrive |
getWheelDrive()
Gets the vehicle's VehiclePhysics.WheelDrive . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final VehiclePhysics.TireCompound FALLBACK_COMPOUND
Constructor Detail |
---|
public VehiclePhysics()
Method Detail |
---|
public final VehiclePhysics.PhysicsSetting getFuelRangeL()
public final VehiclePhysics.PhysicsSetting getFuelRange()
public final float getWeightOfOneLiterOfFuel()
public final VehiclePhysics.PhysicsSetting getFrontWingRange()
public final VehiclePhysics.WheelDrive getWheelDrive()
VehiclePhysics.WheelDrive
.
VehiclePhysics.WheelDrive
public final short getNumForwardGears()
public final VehiclePhysics.Engine getEngine()
public final VehiclePhysics.Brakes getBrakes()
public final java.io.File getUsedTBCFile()
public final int getNumTireCompounds()
VehiclePhysics.TireCompound
s.
VehiclePhysics.TireCompound
s.public final VehiclePhysics.TireCompound getTireCompound(int index)
VehiclePhysics.TireCompound
by the given index.
index
- zero-based
VehiclePhysics.TireCompound
by the given index.public final VehiclePhysics.TireCompound getTireCompoundBestGrip(Wheel wheel)
VehiclePhysics.TireCompound
for the given wheel, that has the best grip compared to allother available ones.
wheel
- the requested wheel
VehiclePhysics.TireCompound
for the given wheel, that has the best grip.public final VehiclePhysics.PhysicsSetting getTirePressureRange(Wheel wheel)
wheel
- the requested wheel
VehicleSetup.WheelAndTire.getTirePressure()
public final VehiclePhysics.UpgradeIdentifier[] getInstalledUpgrades()
null
if no upgrades are installed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |