diff --git a/script.lua b/script.lua index bc37d6e..06878c0 100644 --- a/script.lua +++ b/script.lua @@ -17,6 +17,13 @@ TEXTURE_HEIGHT = 256 util = require("nulllib.util") logging = require("nulllib.logging") timers=require("nulllib.timers") +nmath=require("nulllib.math") +PartsManager=require("nulllib.PartsManager") +UVManager=require("nulllib.UVManager") + +-- math functions +lerp=math.lerp -- this is implemented in figura now +wave=nmath.wave -- syncState {{{ do @@ -61,11 +68,6 @@ function ping.syncState(tbl) end -- }}} --- math functions -nmath=require("nulllib.math") -lerp=math.lerp -- this is implemented in figura now -wave=nmath.wave - -- Master and local state variables -- {{{ -- Local State (these are copied by pings at runtime) -- local_state={} @@ -136,11 +138,6 @@ end -- }}} -PartsManager=require("nulllib.PartsManager") - --- TODO: accept model part for built-in UV management, automatic texture size -UVManager=require("nulllib.UVManager") - -- Parts, groups, other constants -- {{{ HEAD=model.Head.Head FACE=model.Head.Face