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
Overrides
FControllerCore.constructor
Defined in
2d/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 2D properties).
Overrides
FControllerCore.component