Merge pull request #265 from argonui/token-drawing-bugfix

Bugfix: Chaos Token lagging
This commit is contained in:
Chr1Z 2023-04-18 09:30:42 +02:00 committed by GitHub
commit 6ffcc35e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()
})