18 lines
322 B
Lua
18 lines
322 B
Lua
module('entity')
|
|
|
|
function entityInit()
|
|
entityPositionAdd(ENTITY_ID)
|
|
|
|
local phys = entityPhysicsAdd(ENTITY_ID)
|
|
phys.bodyType = PHYSICS_BODY_STATIC
|
|
phys:setShapePlane(0, 1, 0, 0)
|
|
|
|
local mesh = entityMeshAdd(ENTITY_ID)
|
|
mesh:generatePlane(20, 20)
|
|
|
|
entityMaterialAdd(ENTITY_ID)
|
|
end
|
|
|
|
function entityDispose()
|
|
end
|