eljeko/rapanui — Issue #8: bug in setDebugDraw 
Author: alexzheng
Created: 2011-11-30 08:00:53+00:00
State: open

I run the sample rapanui-samples/physics/rn-physics-lists and is report an error

I look into the source

--we need the layer from RNScene received
--keep it in mind for future changes
function setDebugDraw(screen)

local layerfordebug = screen.layer
len = table.getn(screen.sprites)
for i = 0, len, 1 do
screen.sprites[i].visible = false
end
layerfordebug:setBox2DWorld(world)
end

i should start from 1