Vec2iExampleCode

From Crumbled World Wiki
Revision as of 07:54, 6 July 2025 by Anders (talk | contribs) (Created page with "==Example Code== <syntaxhighlight lang="lua"> local a = Vec2(6,8) local b = a + Vec2i(-2,-2) * 2 print(b.x .. ", " .. b.y) --print 2, 4 </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example Code

local a = Vec2(6,8)
local b = a + Vec2i(-2,-2) * 2
print(b.x .. ", " .. b.y)    --print 2, 4