Skip to content

@fibbojs / core / FController

Class: abstract FController

The base class for all 2D and 3D controllers in Fibbo.

Constructors

new FController()

new FController(options): FController

Parameters

options: FControllerOptions

The options for the controller.

Returns

FController

Defined in

core/src/FController.ts:21

Methods

frame()

abstract frame(delta): void

Update the controller. Should be called every frame. The purpose of this method is to update the component transform based on the controller logic.

Parameters

delta: number

The time since the last frame.

Returns

void

Defined in

core/src/FController.ts:30

Properties

component

component: FComponent

The component attached to the controller.

Defined in

core/src/FController.ts:15