TruWorlds

VehicleSeat

Inherits: Seat

VehicleSeat is a Seat that enables vehicle driving. When a player sits in a VehicleSeat, any Motor instances attached to parts that are welded to this seat (directly or transitively) are treated as drive wheels. Player forward/backward input is mapped to motor velocity and left/right input steers by inverting wheel motors on the opposing side.

Properties

MaxSpeed float

Maximum drive speed of the vehicle in studs per second. Motors will be scaled to reach this speed.

TurnSensitivity float

How sharply the vehicle turns. A value of 1 fully reverses the opposite side's motors when steering; lower values produce softer turns.