public class VehicleTuning extends NativePhysicsObject
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Constructor and Description |
|---|
VehicleTuning()
Instantiate an instance with the default parameter values.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getFrictionSlip()
Read the friction between tires and ground (native field:
m_frictionSlip).
|
float |
getMaxSuspensionForce()
Read the maximum force exerted by each wheel's suspension (native field:
m_maxSuspensionForce).
|
float |
getMaxSuspensionTravelCm()
Determine the maximum travel distance for each wheel's suspension (native
field: m_maxSuspensionTravelCm).
|
float |
getSuspensionCompression()
Read the suspension damping when compressed (native field:
m_suspensionCompression).
|
float |
getSuspensionDamping()
Read the suspension damping when expanded (native field:
m_suspensionDamping).
|
float |
getSuspensionStiffness()
Read the suspension stiffness (native field: m_suspensionStiffness).
|
void |
setFrictionSlip(float coeff)
Alter the friction between tires and ground (native field:
m_frictionSlip).
|
void |
setMaxSuspensionForce(float maxForce)
Alter the force exerted by each wheel's suspension (native field:
m_maxSuspensionForce).
|
void |
setMaxSuspensionTravelCm(float travelCm)
Alter the maximum travel distance for the suspension (native field:
m_maxSuspensionTravelCm).
|
void |
setSuspensionCompression(float damping)
Alter the suspension damping when compressed (native field:
m_suspensionCompression).
|
void |
setSuspensionDamping(float damping)
Alter the suspension damping when expanded (native field:
m_suspensionDamping).
|
void |
setSuspensionStiffness(float stiffness)
Alter the stiffness of the suspension (native field:
m_suspensionStiffness).
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public VehicleTuning()
public float getFrictionSlip()
public float getMaxSuspensionForce()
public float getMaxSuspensionTravelCm()
public float getSuspensionCompression()
public float getSuspensionDamping()
public float getSuspensionStiffness()
public void setFrictionSlip(float coeff)
coeff - the desired coefficient of friction (0.8→realistic car,
10000→kart racer, default=10.5)public void setMaxSuspensionForce(float maxForce)
maxForce - the desired maximum force (default=6000)public void setMaxSuspensionTravelCm(float travelCm)
travelCm - the desired maximum amount the suspension can be
compressed or expanded, relative to its rest length (in hundredths of a
physics-space unit, default=500)public void setSuspensionCompression(float damping)
damping - the desired damping amount (0→no damping,
default=0.83)public void setSuspensionDamping(float damping)
damping - the desired damping (0→no damping, default=0.88)public void setSuspensionStiffness(float stiffness)
stiffness - the desired stiffness constant (10→off-road buggy,
50→sports car, 200→Formula-1 race car, default=5.88)