DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс Transport

Base native class for all motorized wheeled vehicles. Подробнее...

Защищенные члены

override event GetOwnerStateType ()
 
override event GetMoveType ()
 
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 float GetSteering ()
 Returns the actual steering value in range <-1, 1>.
 
proto native void SetSteering (float value)
 Sets the future steering value.
 
proto native int GetGearCount ()
 Returns the number of gears.
 
proto native int GetNeutralGear ()
 Returns the index of the neutral gear.
 
proto native int GetGear ()
 Returns the index of the future gear, -1 if there is no engine.
 
proto native int GetCurrentGear ()
 Returns the index of the current gear, -1 if there is no engine.
 
proto native int GetClutch ()
 Returns the value of how much the clutch is disengaged.
 
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 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 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.
 
void OnInput (float dt)
 
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)
 

Закрытые члены

proto native CarController GetController ()
 DEPRECATED, left for backwards compatibility, the methods of this class are now directly accessible on Car itself.
 
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)
 
proto native float GetSteering ()
 Returns the current steering value in range <-1, 1>.
 
proto native void SetSteering (float in, bool analog=false)
 
proto native float GetThrustTurbo ()
 Returns the current thrust turbo modifier value in range <0, 1>.
 
proto native float GetThrustGentle ()
 Returns the current thrust gentle modifier value in range <0, 1>.
 
proto native float GetThrust ()
 Returns the current thrust value in range <0, 1>.
 
proto native void SetThrust (float in, float gentle=0, float turbo=0)
 
proto native float GetBrake ()
 Returns the current brake value in range <0, 1>.
 
proto native void SetBrake (float in, float panic=0, bool gentle=false)
 
proto native float GetHandbrake ()
 Returns the current handbrake value in range <0, 1>.
 
proto native void SetHandbrake (float in)
 
proto native void SetBrakesActivateWithoutDriver (bool activate=true)
 
proto native float GetClutch ()
 Returns the current clutch value in range <0, 1>.
 
proto native void SetClutchState (bool in)
 
proto native int GetGear ()
 Returns index of the current gear.
 
proto native void ShiftUp ()
 
proto native void ShiftTo (CarGear gear)
 
proto native void ShiftDown ()
 
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.
 
void OnFluidChanged (CarFluid fluid, float newValue, float oldValue)
 
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.
 
bool OnBeforeEngineStart ()
 
void OnEngineStart ()
 Is called every time the engine starts.
 
proto native void EngineStop ()
 Stops the engine.
 
void OnEngineStop ()
 Is called every time the engine stops.
 
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 GetGearsCount ()
 Returns total number of gears.
 
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.
 
void OnGearChanged (int newGear, int oldGear)
 
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)
 
void OnContact (string zoneName, vector localPos, IEntity other, Contact data)
 
float OnSound (CarSoundCtrl ctrl, float oldValue)
 
void OnInput (float dt)
 
void OnUpdate (float dt)
 
proto native void ForcePosition (vector pos)
 
proto native void ForceDirection (vector dir)
 

Подробное описание

Base native class for all motorized wheeled vehicles.

Base native class for helicopter.

Методы

◆ DebugFreeAreaAtDoor()

override Shape DebugFreeAreaAtDoor ( int currentSeat,
float maxAllowedObjHeight = 0.5,
float horizontalExtents = 0.5,
float playerHeight = 1.7 )
inlineprivate
122 {
123 int color = ARGB(20, 0, 255, 0);
124
125 vector transform[4];
126
128
132
133 float speed = GetSpeedometerAbsolute();
134 if (speed > 8)
135 extents[2] = extents[2] * 6;
136 if (speed > 8)
137 extents[0] = 2;
138
140 {
141 color = ARGB(20, 255, 0, 0);
142 }
143
144 Shape shape = Debug.DrawBox(-extents * 0.5, extents * 0.5, color);
145 shape.SetMatrix(transform);
146 return shape;
147 }
Definition Debug.c:14
static Shape DrawBox(vector pos1, vector pos2, int color=0x1fff7f7f)
Definition Debug.c:300
Definition EntityAI.c:95
override bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Definition Car.c:102
float GetSpeedometerAbsolute()
Returns the current speed of the vehicle in km/h. Value is absolute.
Definition Car.c:97
Definition EnConvert.c:106
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
int ARGB(int a, int r, int g, int b)
Definition proto.c:322

Перекрестные ссылки ARGB(), Debug::DrawBox() и Shape.

◆ EngineGetRPM() [1/2]

proto native float EngineGetRPM ( )
protected

Returns engine's rpm value.

◆ EngineGetRPM() [2/2]

proto native float EngineGetRPM ( )
private

Returns engine's rpm value.

◆ EngineGetRPMIdle() [1/2]

proto native float EngineGetRPMIdle ( )
protected

Returns engine's idle rpm before engine stalls.

◆ EngineGetRPMIdle() [2/2]

proto native float EngineGetRPMIdle ( )
private

Returns engine's idle rpm before engine stalls.

◆ EngineGetRPMMax() [1/2]

proto native float EngineGetRPMMax ( )
protected

Returns engine's max rpm before engine blows up.

◆ EngineGetRPMMax() [2/2]

proto native float EngineGetRPMMax ( )
private

Returns engine's max rpm before engine blows up.

◆ EngineGetRPMMin() [1/2]

proto native float EngineGetRPMMin ( )
protected

Returns engine's min operating rpm.

◆ EngineGetRPMMin() [2/2]

proto native float EngineGetRPMMin ( )
private

Returns engine's min operating rpm.

◆ EngineGetRPMRedline() [1/2]

proto native float EngineGetRPMRedline ( )
protected

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

◆ EngineGetRPMRedline() [2/2]

proto native float EngineGetRPMRedline ( )
private

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

◆ EngineIsOn() [1/2]

proto native bool EngineIsOn ( )
protected

Returns true when engine is running, false otherwise.

◆ EngineIsOn() [2/2]

proto native bool EngineIsOn ( )
private

Returns true when engine is running, false otherwise.

◆ EngineStart() [1/2]

proto native void EngineStart ( )
protected

Starts the engine.

◆ EngineStart() [2/2]

proto native void EngineStart ( )
private

Starts the engine.

◆ EngineStop() [1/2]

proto native void EngineStop ( )
protected

Stops the engine.

◆ EngineStop() [2/2]

proto native void EngineStop ( )
private

Stops the engine.

◆ Fill() [1/2]

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

Adds to the specified fluid the specified amount.

◆ Fill() [2/2]

proto native void Fill ( CarFluid fluid,
float amount )
private

Adds to the specified fluid the specified amount.

◆ ForceDirection()

proto native void ForceDirection ( vector dir)
private

◆ ForcePosition()

proto native void ForcePosition ( vector pos)
private

◆ GearboxGetMode()

proto native CarAutomaticGearboxMode GearboxGetMode ( )
private

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

◆ GearboxGetType()

proto native CarGearboxType GearboxGetType ( )
private

Returns gearbox type. See CarGearboxType enum for more info.

◆ GetBrake()

proto native float GetBrake ( )
private

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

◆ GetClutch() [1/2]

proto native int GetClutch ( )
protected

Returns the value of how much the clutch is disengaged.

◆ GetClutch() [2/2]

proto native float GetClutch ( )
private

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

◆ GetController()

proto native CarController GetController ( )
private

DEPRECATED, left for backwards compatibility, the methods of this class are now directly accessible on Car itself.

◆ GetCurrentGear()

proto native int GetCurrentGear ( )
protected

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

◆ GetEnginePos()

proto native vector GetEnginePos ( )
private

Get actual position of engine (model space)

◆ GetFluidCapacity() [1/2]

proto native float GetFluidCapacity ( BoatFluid fluid)
protected

Returns tank capacity for the specified vehicle's fluid.

Аргументы
fluidthe specified fluid type

◆ GetFluidCapacity() [2/2]

proto native float GetFluidCapacity ( CarFluid fluid)
private

Returns tank capacity for the specified vehicle's fluid.

Аргументы
fluidthe specified fluid type

◆ GetFluidFraction() [1/2]

proto native float GetFluidFraction ( BoatFluid fluid)
protected

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

Аргументы
[in]fluidthe specified fluid type

◆ GetFluidFraction() [2/2]

proto native float GetFluidFraction ( CarFluid fluid)
private

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

Аргументы
[in]fluidthe specified fluid type

◆ GetGear() [1/2]

proto native int GetGear ( )
protected

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

◆ GetGear() [2/2]

proto native int GetGear ( )
private

Returns index of the current gear.

◆ GetGearCount()

proto native int GetGearCount ( )
protected

Returns the number of gears.

◆ GetGearsCount()

proto native int GetGearsCount ( )
private

Returns total number of gears.

◆ GetHandbrake()

proto native float GetHandbrake ( )
private

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

◆ GetMoveType()

override event GetMoveType ( )
inlineprotected
37 {
38 return BoatMove;
39 }
Definition Boat.c:24

◆ GetNeutralGear()

proto native int GetNeutralGear ( )
protected

Returns the index of the neutral gear.

◆ GetOwnerStateType()

override event GetOwnerStateType ( )
inlineprotected
31 {
32 return BoatOwnerState;
33 }
enum EBoatEffects BoatOwnerState

Перекрестные ссылки BoatOwnerState.

◆ GetSpeedometer()

proto native float GetSpeedometer ( )
private

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

◆ GetSpeedometerAbsolute()

float GetSpeedometerAbsolute ( )
inlineprivate

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

98 {
100 }
Definition EnMath.c:7
proto native float GetSpeedometer()
Returns the current speed of the vehicle in km/h.
static proto float AbsFloat(float f)
Returns absolute value.

Перекрестные ссылки Math::AbsFloat().

◆ GetSteering() [1/2]

proto native float GetSteering ( )
protected

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

◆ GetSteering() [2/2]

proto native float GetSteering ( )
private

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

◆ GetThrottle()

proto native float GetThrottle ( )
protected

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

◆ GetThrust()

proto native float GetThrust ( )
private

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

◆ GetThrustGentle()

proto native float GetThrustGentle ( )
private

Returns the current thrust gentle modifier value in range <0, 1>.

◆ GetThrustTurbo()

proto native float GetThrustTurbo ( )
private

Returns the current thrust turbo modifier value in range <0, 1>.

◆ HasEngine()

proto native bool HasEngine ( )
protected

Returns if there is an engine.

◆ IsAreaAtDoorFree()

override bool IsAreaAtDoorFree ( int currentSeat,
float maxAllowedObjHeight = 0.5,
float horizontalExtents = 0.5,
float playerHeight = 1.7 )
inlineprivate
103 {
104 vector transform[4];
105
107
111
112 float speed = GetSpeedometerAbsolute();
113 if (speed > 8)
114 extents[2] = extents[2] * 6;
115 if (speed > 8)
116 extents[0] = 2;
117
119 }

Используется в EntityAI::DebugFreeAreaAtDoor() и EntityAI::IsAreaAtDoorFree().

◆ Leak() [1/2]

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

Removes from the specified fluid the specified amount.

◆ Leak() [2/2]

proto native void Leak ( CarFluid fluid,
float amount )
private

Removes from the specified fluid the specified amount.

◆ LeakAll() [1/2]

proto native void LeakAll ( BoatFluid fluid)
protected

Removes all the specified fluid from vehicle.

◆ LeakAll() [2/2]

proto native void LeakAll ( CarFluid fluid)
private

Removes all the specified fluid from vehicle.

◆ OnBeforeEngineStart() [1/2]

bool OnBeforeEngineStart ( )
inlineprotected

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

Возвращает
true if the engine can start, false otherwise.
145 {
146 // engine can start by default
147 return true;
148 }

◆ OnBeforeEngineStart() [2/2]

bool OnBeforeEngineStart ( )
inlineprivate

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

Возвращает
true if the engine can start, false otherwise.
286 {
287 // engine can start by default
288 return true;
289 }

◆ OnContact()

void OnContact ( string zoneName,
vector localPos,
IEntity other,
Contact data )
inlineprivate

Is called every time when vehicle collides with other object.

Аргументы
[in]zoneNameconfigured vehicle's zone that was hit
[in]localPosposition where the vehicle was hit in vehicle's space
[in]otherobject with which the vehicle is colliding
[in]datacontact properties
412{}

◆ OnEngineStart() [1/2]

void OnEngineStart ( )
inlineprotected

Is called every time the engine starts.

153{}

◆ OnEngineStart() [2/2]

void OnEngineStart ( )
inlineprivate

Is called every time the engine starts.

292{}

◆ OnEngineStop() [1/2]

void OnEngineStop ( )
inlineprotected

Is called every time the engine stops.

158{}

◆ OnEngineStop() [2/2]

void OnEngineStop ( )
inlineprivate

Is called every time the engine stops.

298{}

◆ OnFluidChanged() [1/2]

void OnFluidChanged ( BoatFluid fluid,
float newValue,
float oldValue )
inlineprotected

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

Аргументы
[in]fluidfluid identifier,
См. также
BoatFluid
Аргументы
[in]newValuenew fluid level
[in]oldValueprevious fluid level before change
176{}

◆ OnFluidChanged() [2/2]

void OnFluidChanged ( CarFluid fluid,
float newValue,
float oldValue )
inlineprivate

Is called every time when the specified vehicle's fluid level changes eg. when vehicle is consuming fuel.

Аргументы
[in]fluidfluid identifier,
См. также
CarFluid
Аргументы
[in]newValuenew fluid level
[in]oldValueprevious fluid level before change
252{}

◆ OnGearChanged() [1/2]

void OnGearChanged ( int newGear,
int oldGear )
inlineprotected

Is called every time when the simulation changed gear.

Аргументы
[in]newGearnew gear level
[in]oldGearprevious gear level before gear shift
166{}

◆ OnGearChanged() [2/2]

void OnGearChanged ( int newGear,
int oldGear )
inlineprivate

Is called every time when the simulation changed gear.

Аргументы
[in]newGearnew gear level
[in]oldGearprevious gear level before gear shift
327 {
328 }

◆ OnInput() [1/2]

void OnInput ( float dt)
inlineprotected

Called every physics simulation step before inputs are applied.

137{}

◆ OnInput() [2/2]

void OnInput ( float dt)
inlineprivate

Is called after every input simulation step.

Note that the player character and other systems can always change the internal state. It is highly recommended to store state of custom inputs elsewhere and call Setters here.

Аргументы
[in]dtframe time in seconds
436{}

◆ OnSound() [1/2]

float OnSound ( BoatSoundCtrl ctrl,
float oldValue )
inlineprotected

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

Аргументы
[in]ctrlsound controller identifier,
См. также
BoatSoundCtrl
Аргументы
[in]oldValuealready computed value by the game code
Возвращает
new value of the specified sound controller.
187 {
188 // just use the computed value by the game code
189 return oldValue;
190 }

◆ OnSound() [2/2]

float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprivate

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

Аргументы
[in]ctrlsound controller identifier,
См. также
CarSoundCtrl
Аргументы
[in]oldValuealready computed value by the game code
Возвращает
new value of the specified sound controller.
423 {
424 // just use the computed value by the game code
425 return oldValue;
426 }

◆ OnUpdate()

void OnUpdate ( float dt)
inlineprivate

Is called every game frame.

Аргументы
[in]dtframe time in seconds
442{}

◆ PropellerGetAngularVelocity()

proto native float PropellerGetAngularVelocity ( )
protected

Returns the angular velocity of the propeller.

◆ PropellerGetPosition()

proto native vector PropellerGetPosition ( )
protected

Returns the propeller position in local space.

◆ SetBrake()

proto native void SetBrake ( float in,
float panic = 0,
bool gentle = false )
private

Sets the brake value.

Аргументы
inshould be in range <0, 1>
panicshould be in range <0, 1>

◆ SetBrakesActivateWithoutDriver()

proto native void SetBrakesActivateWithoutDriver ( bool activate = true)
private

Sets if brakes should activate without a driver present

◆ SetClutchState()

proto native void SetClutchState ( bool in)
private

Sets the clutch state.

◆ SetEnginePos()

proto native void SetEnginePos ( vector pos)
private

Override the position of engine (model space)

◆ SetHandbrake()

proto native void SetHandbrake ( float in)
private

Sets the handbrake value.

Аргументы
inshould be in range <0, 1>

◆ SetSteering() [1/2]

proto native void SetSteering ( float in,
bool analog = false )
private

Sets the steering value.

Аргументы
inshould be in range <-1, 1>
analogindicates if the input value was taken from analog controller

◆ SetSteering() [2/2]

proto native void SetSteering ( float value)
protected

Sets the future steering value.

◆ SetThrottle()

proto native void SetThrottle ( float value)
protected

Sets the future throttle value.

◆ SetThrust()

proto native void SetThrust ( float in,
float gentle = 0,
float turbo = 0 )
private

Sets the thrust value.

Аргументы
inshould be in range <0, 1>
gentleshould be in range <0, 1>, thrust modifier
turboshould be in range <0, 1>, thrust modifier

◆ ShiftDown() [1/2]

proto native void ShiftDown ( )
protected

Shifts the future gear down, triggering gearbox simulation.

◆ ShiftDown() [2/2]

proto native void ShiftDown ( )
private

◆ ShiftTo() [1/2]

proto native void ShiftTo ( CarGear gear)
private

◆ ShiftTo() [2/2]

proto native void ShiftTo ( int gear)
protected

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

◆ ShiftUp() [1/2]

proto native void ShiftUp ( )
protected

Shifts the future gear up, triggering gearbox simulation.

◆ ShiftUp() [2/2]

proto native void ShiftUp ( )
private

◆ WheelCount()

proto native int WheelCount ( )
private

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

◆ WheelCountPresent()

proto native int WheelCountPresent ( )
private

Number of actually attached wheels (hubs only)

◆ WheelGetAngularVelocity()

proto native float WheelGetAngularVelocity ( int wheelIdx)
private

Returns the raw angular velocity of the wheel, unstable value

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetContactNormal()

proto native vector WheelGetContactNormal ( int wheelIdx)
private

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

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetContactPosition()

proto native vector WheelGetContactPosition ( int wheelIdx)
private

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

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetDirection()

proto native vector WheelGetDirection ( int wheelIdx)
private

Returns the direction pointing forwards that the wheel is facing

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetEntity()

proto native EntityAI WheelGetEntity ( int wheelIdx)
private

Returns the entity attached that represents the wheel

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetSurface()

proto native SurfaceInfo WheelGetSurface ( int wheelIdx)
private

Returns the surface that the wheel is nearby

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelGetWaterState()

proto native CarWheelWaterState WheelGetWaterState ( int wheelIdx)
private

Returns the state that the wheel is in with water

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelHasContact()

proto native bool WheelHasContact ( int wheelIdx)
private

Returns true if given wheel is making any contact

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

◆ WheelIsAnyLocked()

proto native bool WheelIsAnyLocked ( )
private

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

◆ WheelIsLocked()

proto native bool WheelIsLocked ( int wheelIdx)
private

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

Аргументы
[in]wheelIdxindex of the wheel, they are counted from left-front to rear-right

Объявления и описания членов классов находятся в файлах: