Implement an Update Function
Demonstrates how to receive regular updates every frame.
A plugin may wish to be notified regularly of updates. To do this it should register a callback using VRAddCallbackUpdate.
Lua plugins may use __registerCallback
to register themselves with the timestep function which is called every frame.
local function myTimestep()
end
local function init()
-- existing initialisation code...
__registerCallback("onTimestepEvent", myTimestep)
end