Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
Transport Class Reference

Native class for boats - handles physics simulation. More...

Protected Member Functions

override event GetOwnerStateType ()
 
override event GetMoveType ()
 
proto native float GetSteering ()
 Returns the actual steering value in range <-1, 1>.
 
proto native void SetSteering (float value)
 Sets the future steering value.
 
proto native float GetThrottle ()
 Returns the actual throttle value in range <0, 1>.
 
proto native void SetThrottle (float value)
 Sets the future throttle value.
 
proto native int GetClutch ()
 Returns the value of how much the clutch is disengaged.
 
proto native void SetClutch (float value)
 Sets the future clutch value.
 
proto native bool HasEngine ()
 Returns if there is an engine.
 
proto native float EngineGetRPMMin ()
 Returns engine's min operating rpm.
 
proto native float EngineGetRPMIdle ()
 Returns engine's idle rpm before engine stalls.
 
proto native float EngineGetRPMMax ()
 Returns engine's max rpm before engine blows up.
 
proto native float EngineGetRPMRedline ()
 Returns engine's maximal working rpm without damaging the engine.
 
proto native float EngineGetRPM ()
 Returns engine's rpm value.
 
proto native bool EngineIsOn ()
 Returns true when engine is running, false otherwise.
 
proto native void EngineStart ()
 Starts the engine.
 
proto native void EngineStop ()
 Stops the engine.
 
proto native int GetCurrentGear ()
 Returns the index of the current gear, -1 if there is no engine.
 
proto native int GetGear ()
 Returns the index of the future gear, -1 if there is no engine.
 
proto native int GetNeutralGear ()
 Returns the index of the neutral gear.
 
proto native int GetGearCount ()
 Returns the number of gears.
 
proto native void ShiftUp ()
 Shifts the future gear up, triggering gearbox simulation.
 
proto native void ShiftTo (int gear)
 Shifts the future gear to selected gear, triggering gearbox simulation.
 
proto native void ShiftDown ()
 Shifts the future gear down, triggering gearbox simulation.
 
proto native vector PropellerGetPosition ()
 Returns the propeller position in local space.
 
proto native float PropellerGetAngularVelocity ()
 Returns the angular velocity of the propeller.
 
proto native float GetFluidCapacity (BoatFluid fluid)
 
proto native float GetFluidFraction (BoatFluid fluid)
 
proto native void Leak (BoatFluid fluid, float amount)
 Removes from the specified fluid the specified amount.
 
proto native void LeakAll (BoatFluid fluid)
 Removes all the specified fluid from vehicle.
 
proto native void Fill (BoatFluid fluid, float amount)
 Adds to the specified fluid the specified amount.
 
bool OnBeforeEngineStart ()
 
void OnEngineStart ()
 
void OnEngineStop ()
 
void OnGearChanged (int newGear, int oldGear)
 
void OnFluidChanged (BoatFluid fluid, float newValue, float oldValue)
 
float OnSound (BoatSoundCtrl ctrl, float oldValue)
 
override event GetOwnerStateType ()
 
override event GetMoveType ()
 
proto native float GetSpeedometer ()
 Returns the current speed of the vehicle in km/h.
 
float GetSpeedometerAbsolute ()
 Returns the current speed of the vehicle in km/h. Value is absolute.
 
override bool IsAreaAtDoorFree (int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
 
override Shape DebugFreeAreaAtDoor (int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
 
bool DetectFlippedUsingWheels (VehicleFlippedContext ctx, bool disallowSide)
 
proto native float GetSteering ()
 Returns the current steering value in range <-1, 1>.
 
proto native void SetSteering (float value, bool unused0=false)
 Sets the future steering value.
 
proto native float GetThrottle ()
 Returns the actual throttle value in range <0, 1>.
 
proto native void SetThrottle (float value)
 Sets the future throttle value.
 
proto native int GetClutch ()
 Returns the value of how much the clutch is disengaged.
 
proto native void SetClutch (float value)
 Sets the future clutch value.
 
proto native float GetBrake ()
 Returns the current brake value in range <0, 1>.
 
proto native void SetBrake (float value, float unused0=0, bool unused1=false)
 Sets the future brake value.
 
proto native float GetHandbrake ()
 Returns the current handbrake value in range <0, 1>.
 
proto native void SetHandbrake (float value)
 Sets the future handbrake value.
 
proto native void SetBrakesActivateWithoutDriver (bool activate=true)
 Sets if brakes should activate without a driver present.
 
proto native float EngineGetRPMMin ()
 Returns engine's min operating rpm.
 
proto native float EngineGetRPMIdle ()
 Returns engine's idle rpm before engine stalls.
 
proto native float EngineGetRPMMax ()
 Returns engine's max rpm before engine blows up.
 
proto native float EngineGetRPMRedline ()
 Returns engine's maximal working rpm without damaging the engine.
 
proto native float EngineGetRPM ()
 Returns engine's rpm value.
 
proto native bool EngineIsOn ()
 Returns true when engine is running, false otherwise.
 
proto native void EngineStart ()
 Starts the engine.
 
proto native void EngineStop ()
 Stops the engine.
 
proto native vector GetEnginePos ()
 Get actual position of engine (model space)
 
proto native void SetEnginePos (vector pos)
 Override the position of engine (model space)
 
proto native int GetCurrentGear ()
 Returns the index of the current gear, -1 if there is no engine.
 
proto native int GetGear ()
 Returns the index of the future gear, -1 if there is no engine.
 
proto native int GetNeutralGear ()
 Returns the index of the neutral gear.
 
proto native int GetGearCount ()
 Returns the number of gears.
 
proto native void ShiftUp ()
 Shifts the future gear up, triggering gearbox simulation.
 
proto native void ShiftTo (int gear)
 Shifts the future gear to selected gear, triggering gearbox simulation.
 
proto native void ShiftDown ()
 Shifts the future gear down, triggering gearbox simulation.
 
proto native CarGearboxType GearboxGetType ()
 Returns gearbox type. See CarGearboxType enum for more info.
 
proto native CarAutomaticGearboxMode GearboxGetMode ()
 Returns gearbox mode. This is useful when car has automatic gearbox.
 
proto native bool WheelIsAnyLocked ()
 Returns true if any of the wheels are locked in terms of its movement.
 
proto native float WheelGetAngularVelocity (int wheelIdx)
 
proto native bool WheelHasContact (int wheelIdx)
 
proto native vector WheelGetContactPosition (int wheelIdx)
 
proto native vector WheelGetContactNormal (int wheelIdx)
 
proto native vector WheelGetDirection (int wheelIdx)
 
proto native SurfaceInfo WheelGetSurface (int wheelIdx)
 
proto native CarWheelWaterState WheelGetWaterState (int wheelIdx)
 
proto native EntityAI WheelGetEntity (int wheelIdx)
 
proto native bool WheelIsLocked (int wheelIdx)
 
proto native int WheelCount ()
 How many wheel can be attached to a car (hubs only)
 
proto native int WheelCountPresent ()
 Number of actually attached wheels (hubs only)
 
proto native float GetFluidCapacity (CarFluid fluid)
 
proto native float GetFluidFraction (CarFluid fluid)
 
proto native void Leak (CarFluid fluid, float amount)
 Removes from the specified fluid the specified amount.
 
proto native void LeakAll (CarFluid fluid)
 Removes all the specified fluid from vehicle.
 
proto native void Fill (CarFluid fluid, float amount)
 Adds to the specified fluid the specified amount.
 
bool OnBeforeEngineStart ()
 
void OnEngineStart ()
 
void OnEngineStop ()
 
void OnGearChanged (int newGear, int oldGear)
 
void OnFluidChanged (CarFluid fluid, float newValue, float oldValue)
 
float OnSound (CarSoundCtrl ctrl, float oldValue)
 
proto native void ForcePosition (vector pos)
 
proto native void ForceDirection (vector dir)
 
proto native CarController GetController ()
 
proto native float GetThrustTurbo ()
 
proto native float GetThrustGentle ()
 
proto native float GetThrust ()
 
proto native void SetThrust (float in, float gentle=0, float turbo=0)
 
proto native void SetClutchState (bool in)
 
proto native int GetGearsCount ()
 

Detailed Description

Native class for boats - handles physics simulation.

Native class for cars - handles physics simulation.

Base native class for helicopter.

Definition at line 27 of file boat.c.

Member Function Documentation

◆ DebugFreeAreaAtDoor()

override Shape Transport::DebugFreeAreaAtDoor ( int currentSeat,
float maxAllowedObjHeight = 0.5,
float horizontalExtents = 0.5,
float playerHeight = 1.7 )
protected

Definition at line 136 of file car.c.

◆ DetectFlippedUsingWheels()

bool Transport::DetectFlippedUsingWheels ( VehicleFlippedContext ctx,
bool disallowSide )
protected

Definition at line 164 of file car.c.

◆ EngineGetRPM() [1/2]

proto native float Transport::EngineGetRPM ( )
protected

Returns engine's rpm value.

◆ EngineGetRPM() [2/2]

proto native float Transport::EngineGetRPM ( )
protected

Returns engine's rpm value.

◆ EngineGetRPMIdle() [1/2]

proto native float Transport::EngineGetRPMIdle ( )
protected

Returns engine's idle rpm before engine stalls.

◆ EngineGetRPMIdle() [2/2]

proto native float Transport::EngineGetRPMIdle ( )
protected

Returns engine's idle rpm before engine stalls.

◆ EngineGetRPMMax() [1/2]

proto native float Transport::EngineGetRPMMax ( )
protected

Returns engine's max rpm before engine blows up.

◆ EngineGetRPMMax() [2/2]

proto native float Transport::EngineGetRPMMax ( )
protected

Returns engine's max rpm before engine blows up.

◆ EngineGetRPMMin() [1/2]

proto native float Transport::EngineGetRPMMin ( )
protected

Returns engine's min operating rpm.

◆ EngineGetRPMMin() [2/2]

proto native float Transport::EngineGetRPMMin ( )
protected

Returns engine's min operating rpm.

◆ EngineGetRPMRedline() [1/2]

proto native float Transport::EngineGetRPMRedline ( )
protected

Returns engine's maximal working rpm without damaging the engine.

◆ EngineGetRPMRedline() [2/2]

proto native float Transport::EngineGetRPMRedline ( )
protected

Returns engine's maximal working rpm without damaging the engine.

◆ EngineIsOn() [1/2]

proto native bool Transport::EngineIsOn ( )
protected

Returns true when engine is running, false otherwise.

◆ EngineIsOn() [2/2]

proto native bool Transport::EngineIsOn ( )
protected

Returns true when engine is running, false otherwise.

◆ EngineStart() [1/2]

proto native void Transport::EngineStart ( )
protected

Starts the engine.

◆ EngineStart() [2/2]

proto native void Transport::EngineStart ( )
protected

Starts the engine.

◆ EngineStop() [1/2]

proto native void Transport::EngineStop ( )
protected

Stops the engine.

◆ EngineStop() [2/2]

proto native void Transport::EngineStop ( )
protected

Stops the engine.

◆ Fill() [1/2]

proto native void Transport::Fill ( BoatFluid fluid,
float amount )
protected

Adds to the specified fluid the specified amount.

◆ Fill() [2/2]

proto native void Transport::Fill ( CarFluid fluid,
float amount )
protected

Adds to the specified fluid the specified amount.

◆ ForceDirection()

proto native void Transport::ForceDirection ( vector dir)
protected

◆ ForcePosition()

proto native void Transport::ForcePosition ( vector pos)
protected

◆ GearboxGetMode()

proto native CarAutomaticGearboxMode Transport::GearboxGetMode ( )
protected

Returns gearbox mode. This is useful when car has automatic gearbox.

◆ GearboxGetType()

proto native CarGearboxType Transport::GearboxGetType ( )
protected

Returns gearbox type. See CarGearboxType enum for more info.

◆ GetBrake()

proto native float Transport::GetBrake ( )
protected

Returns the current brake value in range <0, 1>.

◆ GetClutch() [1/2]

proto native int Transport::GetClutch ( )
protected

Returns the value of how much the clutch is disengaged.

◆ GetClutch() [2/2]

proto native int Transport::GetClutch ( )
protected

Returns the value of how much the clutch is disengaged.

◆ GetController()

proto native CarController Transport::GetController ( )
protected

◆ GetCurrentGear() [1/2]

proto native int Transport::GetCurrentGear ( )
protected

Returns the index of the current gear, -1 if there is no engine.

◆ GetCurrentGear() [2/2]

proto native int Transport::GetCurrentGear ( )
protected

Returns the index of the current gear, -1 if there is no engine.

◆ GetEnginePos()

proto native vector Transport::GetEnginePos ( )
protected

Get actual position of engine (model space)

◆ GetFluidCapacity() [1/2]

proto native float Transport::GetFluidCapacity ( BoatFluid fluid)
protected

Returns tank capacity for the specified vehicle's fluid.

Parameters
fluidthe specified fluid type

◆ GetFluidCapacity() [2/2]

proto native float Transport::GetFluidCapacity ( CarFluid fluid)
protected

Returns tank capacity for the specified vehicle's fluid.

Parameters
fluidthe specified fluid type

◆ GetFluidFraction() [1/2]

proto native float Transport::GetFluidFraction ( BoatFluid fluid)
protected

Returns fraction value (in range <0, 1>) of the current state of the specified vehicle's fluid.

Parameters
[in]fluidthe specified fluid type

◆ GetFluidFraction() [2/2]

proto native float Transport::GetFluidFraction ( CarFluid fluid)
protected

Returns fraction value (in range <0, 1>) of the current state of the specified vehicle's fluid.

Parameters
[in]fluidthe specified fluid type

◆ GetGear() [1/2]

proto native int Transport::GetGear ( )
protected

Returns the index of the future gear, -1 if there is no engine.

◆ GetGear() [2/2]

proto native int Transport::GetGear ( )
protected

Returns the index of the future gear, -1 if there is no engine.

◆ GetGearCount() [1/2]

proto native int Transport::GetGearCount ( )
protected

Returns the number of gears.

◆ GetGearCount() [2/2]

proto native int Transport::GetGearCount ( )
protected

Returns the number of gears.

◆ GetGearsCount()

proto native int Transport::GetGearsCount ( )
protected

◆ GetHandbrake()

proto native float Transport::GetHandbrake ( )
protected

Returns the current handbrake value in range <0, 1>.

◆ GetMoveType() [1/2]

override event Transport::GetMoveType ( )
protected

Definition at line 36 of file boat.c.

◆ GetMoveType() [2/2]

override event Transport::GetMoveType ( )
protected

Definition at line 103 of file car.c.

◆ GetNeutralGear() [1/2]

proto native int Transport::GetNeutralGear ( )
protected

Returns the index of the neutral gear.

◆ GetNeutralGear() [2/2]

proto native int Transport::GetNeutralGear ( )
protected

Returns the index of the neutral gear.

◆ GetOwnerStateType() [1/2]

override event Transport::GetOwnerStateType ( )
protected

Definition at line 30 of file boat.c.

◆ GetOwnerStateType() [2/2]

override event Transport::GetOwnerStateType ( )
protected

Definition at line 97 of file car.c.

◆ GetSpeedometer()

proto native float Transport::GetSpeedometer ( )
protected

Returns the current speed of the vehicle in km/h.

◆ GetSpeedometerAbsolute()

float Transport::GetSpeedometerAbsolute ( )
protected

Returns the current speed of the vehicle in km/h. Value is absolute.

Definition at line 112 of file car.c.

◆ GetSteering() [1/2]

proto native float Transport::GetSteering ( )
protected

Returns the actual steering value in range <-1, 1>.

◆ GetSteering() [2/2]

proto native float Transport::GetSteering ( )
protected

Returns the current steering value in range <-1, 1>.

◆ GetThrottle() [1/2]

proto native float Transport::GetThrottle ( )
protected

Returns the actual throttle value in range <0, 1>.

◆ GetThrottle() [2/2]

proto native float Transport::GetThrottle ( )
protected

Returns the actual throttle value in range <0, 1>.

◆ GetThrust()

proto native float Transport::GetThrust ( )
protected

◆ GetThrustGentle()

proto native float Transport::GetThrustGentle ( )
protected

◆ GetThrustTurbo()

proto native float Transport::GetThrustTurbo ( )
protected

◆ HasEngine()

proto native bool Transport::HasEngine ( )
protected

Returns if there is an engine.

◆ IsAreaAtDoorFree()

override bool Transport::IsAreaAtDoorFree ( int currentSeat,
float maxAllowedObjHeight = 0.5,
float horizontalExtents = 0.5,
float playerHeight = 1.7 )
protected

Definition at line 117 of file car.c.

◆ Leak() [1/2]

proto native void Transport::Leak ( BoatFluid fluid,
float amount )
protected

Removes from the specified fluid the specified amount.

◆ Leak() [2/2]

proto native void Transport::Leak ( CarFluid fluid,
float amount )
protected

Removes from the specified fluid the specified amount.

◆ LeakAll() [1/2]

proto native void Transport::LeakAll ( BoatFluid fluid)
protected

Removes all the specified fluid from vehicle.

◆ LeakAll() [2/2]

proto native void Transport::LeakAll ( CarFluid fluid)
protected

Removes all the specified fluid from vehicle.

◆ OnBeforeEngineStart() [1/2]

bool Transport::OnBeforeEngineStart ( )
protected

Is called every time the game wants to start the engine.

Returns
true if the engine can start, false otherwise.

Definition at line 142 of file boat.c.

◆ OnBeforeEngineStart() [2/2]

bool Transport::OnBeforeEngineStart ( )
protected

Is called every time the game wants to start the engine.

Returns
true if the engine can start, false otherwise.

Definition at line 379 of file car.c.

◆ OnEngineStart() [1/2]

void Transport::OnEngineStart ( )
protected

Is called every time the engine starts.

Definition at line 151 of file boat.c.

◆ OnEngineStart() [2/2]

void Transport::OnEngineStart ( )
protected

Is called every time the engine starts.

Definition at line 388 of file car.c.

◆ OnEngineStop() [1/2]

void Transport::OnEngineStop ( )
protected

Is called every time the engine stops.

Definition at line 156 of file boat.c.

◆ OnEngineStop() [2/2]

void Transport::OnEngineStop ( )
protected

Is called every time the engine stops.

Definition at line 393 of file car.c.

◆ OnFluidChanged() [1/2]

void Transport::OnFluidChanged ( BoatFluid fluid,
float newValue,
float oldValue )
protected

Is called every time when the specified vehicle's fluid level changes. This callback is called on owner only.

Parameters
[in]fluidfluid identifier,
See also
BoatFluid
Parameters
[in]newValuenew fluid level
[in]oldValueprevious fluid level before change

Definition at line 174 of file boat.c.

◆ OnFluidChanged() [2/2]

void Transport::OnFluidChanged ( CarFluid fluid,
float newValue,
float oldValue )
protected

Is called every time when the specified vehicle's fluid level changes. This callback is called on owner only.

Parameters
[in]fluidfluid identifier,
See also
CarFluid
Parameters
[in]newValuenew fluid level
[in]oldValueprevious fluid level before change

Definition at line 413 of file car.c.

◆ OnGearChanged() [1/2]

void Transport::OnGearChanged ( int newGear,
int oldGear )
protected

Is called every time when the simulation changed gear.

Parameters
[in]newGearnew gear level
[in]oldGearprevious gear level before gear shift

Definition at line 164 of file boat.c.

◆ OnGearChanged() [2/2]

void Transport::OnGearChanged ( int newGear,
int oldGear )
protected

Is called every time when the simulation changed gear.

Parameters
[in]newGearnew gear level
[in]oldGearprevious gear level before gear shift

Definition at line 401 of file car.c.

◆ OnSound() [1/2]

float Transport::OnSound ( BoatSoundCtrl ctrl,
float oldValue )
protected

Is called every sound simulation step. In this callback, user can modify behaviour of sound controllers.

Parameters
[in]ctrlsound controller identifier,
See also
BoatSoundCtrl
Parameters
[in]oldValuealready computed value by the game code
Returns
new value of the specified sound controller.

Definition at line 184 of file boat.c.

◆ OnSound() [2/2]

float Transport::OnSound ( CarSoundCtrl ctrl,
float oldValue )
protected

Is called every sound simulation step. In this callback, user can modify behaviour of sound controllers.

Parameters
[in]ctrlsound controller identifier,
See also
CarSoundCtrl
Parameters
[in]oldValuealready computed value by the game code
Returns
new value of the specified sound controller.

Definition at line 423 of file car.c.

◆ PropellerGetAngularVelocity()

proto native float Transport::PropellerGetAngularVelocity ( )
protected

Returns the angular velocity of the propeller.

◆ PropellerGetPosition()

proto native vector Transport::PropellerGetPosition ( )
protected

Returns the propeller position in local space.

◆ SetBrake()

proto native void Transport::SetBrake ( float value,
float unused0 = 0,
bool unused1 = false )
protected

Sets the future brake value.

◆ SetBrakesActivateWithoutDriver()

proto native void Transport::SetBrakesActivateWithoutDriver ( bool activate = true)
protected

Sets if brakes should activate without a driver present.

◆ SetClutch() [1/2]

proto native void Transport::SetClutch ( float value)
protected

Sets the future clutch value.

◆ SetClutch() [2/2]

proto native void Transport::SetClutch ( float value)
protected

Sets the future clutch value.

◆ SetClutchState()

proto native void Transport::SetClutchState ( bool in)
protected

◆ SetEnginePos()

proto native void Transport::SetEnginePos ( vector pos)
protected

Override the position of engine (model space)

◆ SetHandbrake()

proto native void Transport::SetHandbrake ( float value)
protected

Sets the future handbrake value.

◆ SetSteering() [1/2]

proto native void Transport::SetSteering ( float value)
protected

Sets the future steering value.

◆ SetSteering() [2/2]

proto native void Transport::SetSteering ( float value,
bool unused0 = false )
protected

Sets the future steering value.

◆ SetThrottle() [1/2]

proto native void Transport::SetThrottle ( float value)
protected

Sets the future throttle value.

◆ SetThrottle() [2/2]

proto native void Transport::SetThrottle ( float value)
protected

Sets the future throttle value.

◆ SetThrust()

proto native void Transport::SetThrust ( float in,
float gentle = 0,
float turbo = 0 )
protected

◆ ShiftDown() [1/2]

proto native void Transport::ShiftDown ( )
protected

Shifts the future gear down, triggering gearbox simulation.

◆ ShiftDown() [2/2]

proto native void Transport::ShiftDown ( )
protected

Shifts the future gear down, triggering gearbox simulation.

◆ ShiftTo() [1/2]

proto native void Transport::ShiftTo ( int gear)
protected

Shifts the future gear to selected gear, triggering gearbox simulation.

◆ ShiftTo() [2/2]

proto native void Transport::ShiftTo ( int gear)
protected

Shifts the future gear to selected gear, triggering gearbox simulation.

◆ ShiftUp() [1/2]

proto native void Transport::ShiftUp ( )
protected

Shifts the future gear up, triggering gearbox simulation.

◆ ShiftUp() [2/2]

proto native void Transport::ShiftUp ( )
protected

Shifts the future gear up, triggering gearbox simulation.

◆ WheelCount()

proto native int Transport::WheelCount ( )
protected

How many wheel can be attached to a car (hubs only)

◆ WheelCountPresent()

proto native int Transport::WheelCountPresent ( )
protected

Number of actually attached wheels (hubs only)

◆ WheelGetAngularVelocity()

proto native float Transport::WheelGetAngularVelocity ( int wheelIdx)
protected

Returns the raw angular velocity of the wheel, unstable value

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetContactNormal()

proto native vector Transport::WheelGetContactNormal ( int wheelIdx)
protected

Returns the normal of contact in world space, only valid if there was an actual contact

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetContactPosition()

proto native vector Transport::WheelGetContactPosition ( int wheelIdx)
protected

Returns the position of contact in world space, only valid if there was an actual contact

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetDirection()

proto native vector Transport::WheelGetDirection ( int wheelIdx)
protected

Returns the direction pointing forwards that the wheel is facing

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetEntity()

proto native EntityAI Transport::WheelGetEntity ( int wheelIdx)
protected

Returns the entity attached that represents the wheel

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetSurface()

proto native SurfaceInfo Transport::WheelGetSurface ( int wheelIdx)
protected

Returns the surface that the wheel is nearby

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetWaterState()

proto native CarWheelWaterState Transport::WheelGetWaterState ( int wheelIdx)
protected

Returns the state that the wheel is in with water

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelHasContact()

proto native bool Transport::WheelHasContact ( int wheelIdx)
protected

Returns true if given wheel is making any contact

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelIsAnyLocked()

proto native bool Transport::WheelIsAnyLocked ( )
protected

Returns true if any of the wheels are locked in terms of its movement.

◆ WheelIsLocked()

proto native bool Transport::WheelIsLocked ( int wheelIdx)
protected

Returns true if given wheel is locked in terms of its movement.

Parameters
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

The documentation for this class was generated from the following files: