Merge pull request #424 from argonui/tokengroup-spawning
Token Group Spawning: fixed shiftdown vector
This commit is contained in:
commit
64b408ee76
@ -221,9 +221,11 @@ do
|
|||||||
-- Copy the offsets to make sure we don't change the static values
|
-- Copy the offsets to make sure we don't change the static values
|
||||||
local baseOffsets = offsets
|
local baseOffsets = offsets
|
||||||
offsets = { }
|
offsets = { }
|
||||||
|
|
||||||
|
-- get a vector for the shifting (downwards local to the card)
|
||||||
|
local shiftDownVector = Vector(0, 0, shiftDown):rotateOver("y", card.getRotation().y)
|
||||||
for i, baseOffset in ipairs(baseOffsets) do
|
for i, baseOffset in ipairs(baseOffsets) do
|
||||||
offsets[i] = baseOffset
|
offsets[i] = baseOffset + shiftDownVector
|
||||||
offsets[i][3] = offsets[i][3] + shiftDown
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user