Atlas Engine
API Referencebezel

Vehicle

Physics vehicle component with driving inputs and configurable wheels and drivetrain.

Module: bezel

Physics vehicle component with driving inputs and configurable wheels and drivetrain.

Declaration

export class Vehicle extends Component { ... }

Extends: Component

Properties

settings

settings: VehicleSettings;

forward

forward: number;
right: number;

brake

brake: number;

handBrake

handBrake: number;

Methods

atAttach

override atAttach(): void;

beforePhysics

override beforePhysics(): void;

requestRecreate

Requests recreation of the vehicle physics state after configuration changes.

requestRecreate(): void;

init

override init(): void;

update

override update(deltaTime: number): void;

On this page