Example 5 Steering Wheel/Pedals

The Steering Wheel example provides a demonstration of how the steering and pedals can be used to control a vehicle. For more information on the vehicle script and how to code the x and y axis from the Pedal and Steering Wheel controls, see the Extras section.

This example starts with dual touchsticks to move the player towards the vehicle. An On Player Enter Trigger is used to activate the mount script and controls

The following set of Actions hides the dual touchsticks, sets the player state and parent to the vehicle, adds the steering wheel and pedals, and changes to the vehicle mounted camera. And you are good to go.

Note: this example uses a HoverMotor script included in the Extras of this Module.

For more information on the vehicle script and how to code the x and y axis from the Pedal and Steering Wheel controls, see the Extras section.

Last updated