Skip to content

@fibbojs / 2d / FController

Class: abstract FController

The base class for 2D controllers in Fibbo.

Extends

  • FController

Extended by

Constructors

new FController()

new FController(options): FController

Parameters

options: FControllerOptions

The options for the controller.

Returns

FController

Overrides

FControllerCore.constructor

Defined in

2d/src/controllers/FController.ts:23

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

Inherited from

FControllerCore.frame

Defined in

core/dist/index.d.ts:26

Properties

component

component: FComponent

The component attached to the controller. It is redefined here to get the correct type (with 2D properties).

Overrides

FControllerCore.component

Defined in

2d/src/controllers/FController.ts:17