Skip to content

@fibbojs / core / FController

Class: abstract FController ​

The base class for all 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:27

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:37

Properties ​

__RUN_IN_PHYSIC_PIPELINE__ ​

__RUN_IN_PHYSIC_PIPELINE__: boolean

True if the controller should run in the physic pipeline.

Defined in ​

core/src/FController.ts:20


component ​

component: FComponent

The component attached to the controller.

Defined in ​

core/src/FController.ts:16