CameraExampleCode: Revision history

From Crumbled World Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 July 2025

  • curprev 07:4907:49, 6 July 2025Anders talk contribs 1,244 bytes +1,244 Created page with "==Example Code== <syntaxhighlight lang="lua"> --this = Camera() function create() keyBinds = Core.getBillboard("keyBind"); keyBindForward = keyBinds:getKeyBind("forward"); keyBindBackward = keyBinds:getKeyBind("backward"); keyBindLeft = keyBinds:getKeyBind("left"); keyBindRight = keyBinds:getKeyBind("right"); end function update() local deltaTime = Core.getDeltaTime() local localMat = this:getLocalMatrix() if keyBindForward:getHeld() then localMat:setPos..."