Table of Contents
VehiceWheeledSimulation
Provides functionality for wheeled vehicles.
class: VehicleWheeledSimulation
Parent Class: VehicleBaseSimulation
Location: scripts/Game/generated/Vehicle/VehicleWheeledSimulation.c
—
Common usage
wip
Functions
GetSpeedKmh()
GetSteering()
SetSteering()
SetSteering(float in);
Sets steering input. \param in should be in range < -1, 1 >
Return Type: void
GetClutch()
GetClutch();
Returns current clutch value in range < 0, 1 > - 0 .. clutch disengaged 1 .. clutch fully engaged
Return Type: float
SetClutch()
GetBrake()
SetBreak()
SetBreak(float in, bool hb);
Sets brake inputs \param in should be in range < 0, 1 > \param hb indicating whether handbrake should be applied
Return Type: void
GetThrottle()
SetThrottle()
GetGear()
SetGear()
IsHandbrakeOn()
EngineStart()
EngineStop()
EngineIsOn()
EngineGetRPMIdle()
EngineGetRPMPeakTorque()
EngineGetRPMPeakPower()
EngineGetRPMMax()
EngineGetRPM()
EngineGetRPMFeedback()
EngineGetRPMFeedback();
Returns RPM that is feeded back from rest of the powertrain
Return Type: float
EngineGetLoad()
EngineGetPeakTorque()
EngineGetPeakTorque();
Returns initial engine's peak torque in Nm (newton-metre).
Return Type: float
EngineGetPeakTorqueState()
EngineGetPeakTorqueState();
Returns current engine's peak torque in Nm (newton-metre).
Return Type: float
EngineSetPeakTorqueState()
EngineSetPeakTorqueState(float peakTorque);
Sets current engine's peak torque. \param peakTorque must be in Nm (newton-metre).
Return Type: void
EngineGetPeakPower()
EngineGetPeakPowerState()
EngineGetPeakPowerState();
Returns current engine's peak power in kW (kilowatts).
Return Type: float
EngineSetPeakPowerState()
EngineSetPeakPowerState(float peakPower);
Sets current engine's peak power. \param peakTorque must be in kW (kilowatts).
Return Type: float
GearboxGetEfficiency()
GearboxGetEfficiencyState()
GearboxSetEfficiencyState()
GearboxGearsCount()
GearboxForwardGearsCount()
WheelCount()
WheelGetIndex()
WheelGetPosition()
WheelGetPosition(int wheelIdx, float displacement = 0.0);
Get the wheel position based on suspension. \param wheelIdx Index of the wheel \param displacement 0 means the position of the wheel when the suspension is fully extended ( zero g ). \return Returns wheel position in local space.
Return Type: vector
WheelGetName()
WheelGetName(int wheelIdx);
Returns name of the wheel based on its index
Return Type: string
WheelHasContact()
WheelHasContact(int wheelIdx);
Returns true if wheel has contact with ground or other object
Return Type: bool
WheelGetContactMaterial()
WheelGetContactPosition()
WheelGetContactPosition(int wheelIdx);
Returns wheel contact position in world space
Return Type: vector
WheelGetContactNormal()
WheelGetContactEntity()
WheelGetContactEntity(int wheelIdx);
Returns entity which is in contact with wheel
Return Type: IEntity
WheelGetRPM()
WheelGetRadius()
WheelGetRadiusState()
WheelSetRadiusState()
WheelGetMass()
WheelGetMassState()
WheelSetMassState()
WheelGetLongitudinalSlip()
WheelGetLateralSlip()
WheelGetRollingDrag()
WheelGetRollingDrag(int wheelIdx);
Returns current wheel's rolling drag percentage
Return Type: float
WheelSetRollingDrag()
WheelSetRollingDrag(int wheelIdx, float drag);
Sets current rolling drag percentage
Return Type: void
WheelTyreGetRoughness()
WheelTyreGetRoughness(int wheelIdx);
Returns initial roughness of wheel's tyre surface
Return Type: float
WheelTyreGetRoughnessState()
WheelTyreGetRoughnessState(int wheelIdx);
Returns current roughness of wheel's tyre surface
Return Type: float
WheelTyreSetRoughnessState()
WheelTyreSetRoughnessState(int wheelIdx, float roughness);
Sets current roughness of wheel's tyre surface
Return Type: void
WheelTyreGetLongitudinalFriction()
WheelTyreGetLongitudinalFriction(int wheelIdx);
Returns tyre's initial longitudinal friction
Return Type: float
WheelTyreGetLongitudinalFrictionState()
WheelTyreGetLongitudinalFrictionState(int wheelIdx);
Returns tyre's current longitudinal friction
Return Type: float
WheelTyreSetLongitudinalFrictionState()
WheelTyreSetLongitudinalFrictionState(int wheelIdx, float lngFriction);
Sets tyre's current longitudinal friction
Return Type: void
WheelTyreGetLateralFriction()
WheelTyreGetLateralFriction(int wheelIdx);
Returns tyre's initial lateral friction
Return Type: float
WheelTyreGetLateralFrictionState()
WheelTyreGetLateralFrictionState(int wheelIdx);
Returns tyre's current lateral friction
Return Type: float
WheelTyreSetLateralFrictionState()
WheelTyreSetLateralFrictionState(int wheelIdx, float latFriction);
Sets tyre's current lateral friction
Return Type: void
GetNoiseSteerSensitivity()
GetNoiseSteerSensitivity();
Returns sensitivity against noise steer value of surface in range < 0, 1 >
Return Type: float
SetNoiseSteerSensitivity()
SetNoiseSteerSensitivity(float newValue);
Sets sensitivity on noise steer \param newValue should be in range < 0, 1 >
Return Type: void
GetRoughnessSensitivity()
GetRoughnessSensitivity();
Returns sensitivity against roughness value of surface in range < 0, 1 >
Return Type: float
SetRoughnessSensitivity()
SetRoughnessSensitivity(float newValue);
Sets sensitivity on roughness value of surface \param newValue should be in range < 0, 1 >
Return Type: void