TypesUpdateFunctionOn this pageUpdateFunctionThe UpdateFunction type represents the function that is called every frame to update the state of an object in the game.Definitiontype UpdateFunction = (deltaTime: number) => void;ParametersdeltaTimeType: numberThe time elapsed since the last frame.Return Valuevoid