PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CarController Class Reference

DEPRECATED class left for backwards compatibility, methods are available on car itself now. More...

Private Member Functions

private void CarController ()
 
private void ~CarController ()
 
proto float GetSteering ()
 Returns the current steering value in range <-1, 1>.
 
proto void SetSteering (float in, bool analog=false)
 
proto float GetThrustTurbo ()
 Returns the current thrust turbo modifier value in range <0, 1>.
 
proto float GetThrustGentle ()
 Returns the current thrust gentle modifier value in range <0, 1>.
 
proto float GetThrust ()
 Returns the current thrust value in range <0, 1>.
 
proto void SetThrust (float in, float gentle=0, float turbo=0)
 
proto float GetBrake ()
 Returns the current brake value in range <0, 1>.
 
proto void SetBrake (float in, float panic=0)
 
proto int GetGear ()
 Returns index of the current gear.
 
proto void ShiftUp ()
 
proto void ShiftTo (CarGear gear)
 
proto void ShiftDown ()
 

Detailed Description

DEPRECATED class left for backwards compatibility, methods are available on car itself now.

Constructor & Destructor Documentation

◆ CarController()

private void CarController ( )
inlineprivate

◆ ~CarController()

private void ~CarController ( )
inlineprivate

Member Function Documentation

◆ GetBrake()

proto float GetBrake ( )
private

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

◆ GetGear()

proto int GetGear ( )
private

Returns index of the current gear.

◆ GetSteering()

proto float GetSteering ( )
private

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

◆ GetThrust()

proto float GetThrust ( )
private

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

◆ GetThrustGentle()

proto float GetThrustGentle ( )
private

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

◆ GetThrustTurbo()

proto float GetThrustTurbo ( )
private

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

◆ SetBrake()

proto void SetBrake ( float  in,
float  panic = 0 
)
private

Sets the brake value.

Parameters
inshould be in range <0, 1>
panicshould be in range <0, 1>

◆ SetSteering()

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

Sets the steering value.

Parameters
inshould be in range <-1, 1>
analogindicates if the input value was taken from analog controller

◆ SetThrust()

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

Sets the thrust value.

Parameters
inshould be in range <0, 1>
gentleshould be in range <0, 1>, thrust modifier
turboshould be in range <0, 1>, thrust modifier

◆ ShiftDown()

proto void ShiftDown ( )
private

◆ ShiftTo()

proto void ShiftTo ( CarGear  gear)
private

◆ ShiftUp()

proto void ShiftUp ( )
private

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