readded index to stop token draw lagging

This commit is contained in:
Chr1Z93 2023-04-17 09:26:25 +02:00
parent aba86f4e88
commit 81f4f678c7

View File

@ -301,6 +301,7 @@ function drawChaosToken(params)
-- add the token to the list, compute new position based on list length
tokenOffset[1] = tokenOffset[1] + (0.17 * #chaosTokens)
local token = chaosbag.takeObject({
index = 0,
position = mat.positionToWorld(tokenOffset),
rotation = mat.getRotation()
})