couch-rust/main.lua
2022-04-15 19:58:45 -05:00

13 lines
358 B
Lua

print("Hello from a lua script!")
function init()
print("Hello from \"init\"")
end
function update(delta)
local transform = couch.root:find_node("cube"):get_transform()
transform.rotation[2] = transform.rotation[2] + delta
transform.rotation[1] = transform.rotation[1] - delta * 0.3
couch.root:find_node("cube"):set_transform(transform)
end