need help with this error
hi, i need help with this error. code and error below
problem code (i think):
walls = {}
if gameMap.layers["Walls"] then
for i, obj in pairs(gameMap.layers["Walls"].objects) do
local wall = world:newRectangleCollider(obj.x, obj.y, obj.width, obj.height)
wall:setType('static')
table.insert(walls, Wall)
end
end
end
function love.draw()
gameMap:drawLayer(gameMap.layers["ground"])
gameMap:drawLayer(gameMap.layers["trees"])
gameMap:drawLayer(gameMap.layers["Walls"])
error:
Error
libraries/windfield/init.lua:745: Box2D assertion failed: area > b2_epsilon
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newFixture'
libraries/windfield/init.lua:745: in function 'newRectangleCollider'
main.lua:37: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'