BasicWheelController

  • Type : Public class
  • Inherents from MonoBehaviour
  • Namespace : SlateShipyard.Modules.Wheels

A basic controller to control vehicles with wheels.

This basic controller is to be used by vehicles with the two front wheels being the ones generating the force. It was made to be able to exapanded on with the virtual methods.

Properties


Public Properties

OWSimpleRaycastWheel

The front right wheel.

OWSimpleRaycastWheel

The front left wheel.

OWRigidbody

The vehicle body.

float

The max angle the wheels can go.

float

The max force the "motor" can reach.

Methods


Public Methods

void FixedUpdate()

When the motor force it got from the inputs is added.

void Update()

When the wheels steer angle it got from the inputs is changed.