Added "low velocity" as additional condition
This commit is contained in:
parent
a0780f2316
commit
2a778840b0
@ -2881,7 +2881,8 @@ function moveCardWithTokens(params)
|
|||||||
|
|
||||||
if card ~= nil and cardTokens[card] ~= nil and #cardTokens[card] ~= 0 then
|
if card ~= nil and cardTokens[card] ~= nil and #cardTokens[card] ~= 0 then
|
||||||
updateTokenTransform(card)
|
updateTokenTransform(card)
|
||||||
return card.resting and not card.isSmoothMoving()
|
local cardVelocity = card.getVelocity():magnitude()
|
||||||
|
return (card.resting and not card.isSmoothMoving()) or (cardVelocity < 0.15 and cardVelocity > 0.05)
|
||||||
end
|
end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user