Falco Engine 3.9.0.1 (beta)
FalcoEngine.Vehicle Class Reference
Inheritance diagram for FalcoEngine.Vehicle:
FalcoEngine.Component

Classes

struct  Wheel
 

Public Member Functions

void SetSteering (float angle, int wheelIndex)
 Set the wheel steering angle in degrees More...
 
float GetSteering (int wheelIndex)
 Get the wheel steering angle in degrees More...
 
void SetBreak (float value, int wheelIndex)
 Set wheel's braking ratio More...
 
void ApplyEngineForce (float value, int wheelIndex)
 Apply engine force to the wheel More...
 

Properties

int numWheels [get]
 Gets the number of wheels attached to this vehicle More...
 
float speedKMH [get]
 Gets the current vehicle speed in kilometers per hour More...
 
- Properties inherited from FalcoEngine.Component
bool enabled [getset]
 Enable or disable this component More...
 
GameObject gameObject [get]
 Get game object at which this component is attached More...
 
bool isUiComponent [get]
 Returns if this component is derived from UIElement (or this is a canvas) or not More...
 

Additional Inherited Members

- Protected Member Functions inherited from FalcoEngine.Component
 Component ()
 

Detailed Description

Definition at line 9 of file Vehicle.cs.

Member Function Documentation

◆ ApplyEngineForce()

void FalcoEngine.Vehicle.ApplyEngineForce ( float  value,
int  wheelIndex 
)

Apply engine force to the wheel

Parameters
value
wheelIndex

Definition at line 78 of file Vehicle.cs.

◆ GetSteering()

float FalcoEngine.Vehicle.GetSteering ( int  wheelIndex)

Get the wheel steering angle in degrees

Parameters
wheelIndex
Returns

Definition at line 58 of file Vehicle.cs.

◆ SetBreak()

void FalcoEngine.Vehicle.SetBreak ( float  value,
int  wheelIndex 
)

Set wheel's braking ratio

Parameters
value
wheelIndex

Definition at line 68 of file Vehicle.cs.

◆ SetSteering()

void FalcoEngine.Vehicle.SetSteering ( float  angle,
int  wheelIndex 
)

Set the wheel steering angle in degrees

Parameters
angle
wheelIndex

Definition at line 48 of file Vehicle.cs.

Property Documentation

◆ numWheels

int FalcoEngine.Vehicle.numWheels
get

Gets the number of wheels attached to this vehicle

Definition at line 36 of file Vehicle.cs.

◆ speedKMH

float FalcoEngine.Vehicle.speedKMH
get

Gets the current vehicle speed in kilometers per hour

Definition at line 41 of file Vehicle.cs.


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