setWindSpeed
Definition
-- @/lua/ge/extensions/core/environment.lua:340
-------------------------------------------------------------
------------------------- Clouds ----------------------------
-------------------------------------------------------------
-- Old functions below, only works for the first cloud object in the scene
local function setWindSpeed(windSpeed)
local cloudObj = getObject("CloudLayer")
if cloudObj and windSpeed then
if not updatingWholeState then extensions.hook('onEnvironmentChanged', {windSpeed = windSpeed}) end
if not environmentChangesEnabled then return end
cloudObj.windSpeed = windSpeed
cloudObj:postApply()
end
end
Callers
@/lua/ge/extensions/core/environment.lua
setTimeOfDay(timeObj)
setWindSpeed(state.windSpeed)
setCloudCover(state.cloudCover)