triggerAppearingAnimation
Definition
-- @/lua/ge/extensions/gameplay/crawl/boundary.lua:436
-- Function to trigger appearing animation for all currently visible objects
local function triggerAppearingAnimation()
if not boundaryObjects then
return
end
for objectId, objectInfo in pairs(boundaryObjects) do
local obj = scenetree.findObjectById(objectId)
if obj and not obj.hidden then
-- Reset to initial animation state
objectInfo.animationState = "appearing"
objectInfo.animationTimer = 0
objectInfo.lastVisible = true
-- Set initial visual state
obj:setScale(vec3(minScale, minScale, minScale))
obj:setField('instanceColor', 0, '1 1 1 0')
obj.hidden = false
end
end
log('D', logTag, 'Triggered appearing animation for visible boundary markers')
end
Callers