Skip to content

@fibbojs / 3d / FController

Class: abstract FController

The base class for 3D 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

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

Methods

onFrame()

abstract onFrame(delta): void

Update the controller. Should be called every frame. The purpose of onFrame on FController is to update the component's transform in the desired way. Any rendering process should be done on the component, not here.

Parameters

delta: number

The time since the last frame.

Returns

void

Inherited from

FControllerCore.onFrame

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 3D properties).

Overrides

FControllerCore.component

Defined in

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