physicsUpdate

ScriptBase::physicsUpdate

Is executed each time the Physics Module does a physics iteration.

Declaration

virtual void physicsUpdate(float dt) {

Parameters

Name

Type

Description

dt

float

Delta time of the physics iteration, in seconds.

Returns

None.

Notes

As this function is executed per physics iteration and not per frame, it means that it can be executed 0, 1 or N times per frame.