update

Script::update

Update function executed once per frame.

Declaration

virtual void update(float dt) = 0;

Parameters

Name

Type

Description

dt

float

The delta time, which corresponds to the time between two frames, in seconds.

Returns

None.

Notes

This function must be overloaded when creating a Script and is executed once per frame.