car-handling.controller overview
Table of contents
- utils
- CarHandlingController (class)
- CarHandlingControllerOptions (type alias)
- CarHandlingOutput (type alias)
utils
CarHandlingController (class)
Signature
export declare class CarHandlingController {
constructor(
public readonly keyboard: KeyboardInput,
public readonly options: CarHandlingControllerOptions = {
keymap: 'arrows',
maxSteerDeltaPerSecond: 12,
}
)
}
onSpawned (method)
Signature
async onSpawned(world: GgWorld<any, any>): Promise<void>
onRemoved (method)
Signature
async onRemoved(): Promise<void>
tickOrder (property)
Signature
readonly tickOrder: TickOrder.INPUT_CONTROLLERS
directionsInput (property)
Signature
readonly directionsInput: DirectionInput
CarHandlingControllerOptions (type alias)
Signature
export type CarHandlingControllerOptions = {
readonly keymap: DirectionKeymap
readonly maxSteerDeltaPerSecond: number
}
CarHandlingOutput (type alias)
Signature
export type CarHandlingOutput = { upDown: number; leftRight: number }