This commit is contained in:
2026-04-24 21:22:11 -05:00
parent 565c530469
commit c9d949f759
19 changed files with 379 additions and 1141 deletions
+21
View File
@@ -0,0 +1,21 @@
local Cube = {}
Cube.__index = Cube
function Cube.new()
local self = setmetatable({}, Cube)
self.id = entityAdd()
local pos = entityPositionAdd(self.id)
pos.x = 0
pos.y = 0
pos.z = 0
entityMeshAdd(self.id)
local mat = entityMaterialAdd(self.id)
mat.color = colorWhite()
return self
end
function Cube:dispose()
entityRemove(self.id)
end
return Cube