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
The settings.
settings: VehicleSettings;forward
The forward.
forward: number;right
The right.
right: number;brake
The brake.
brake: number;handBrake
The hand brake.
handBrake: number;Methods
atAttach
Runs when the component is attached to its parent object.
override atAttach(): void;beforePhysics
Runs immediately before the physics simulation step.
override beforePhysics(): void;requestRecreate
Requests recreation of the vehicle physics state after configuration changes.
requestRecreate(): void;init
Initializes the component after it is attached.
override init(): void;update
Updates the component for the current frame.
override update(deltaTime: number): void;