It looks like you're new here. If you want to get involved, click one of these buttons!
local function filter(item) if item.isEnemy then return true end end local bump = require("bump").newWorld(256) bump:add({isEnemy = true}, 100, 0, 100, 100) local items, len = bump:querySegment(0, 50, 300, 50, filter) print('lua bump found ' .. len .. ' items') b = require('cbump') local bump2 = b.newWorld(256) bump2:add({isEnemy = true}, 100, 0, 100, 100) local items, len = bump2:querySegment(0, 50, 300, 50, filter) print('native bump found ' .. len .. ' items') |
lua bump found 1 itemsI would expect both to find one item
native bump found 0 items
Comments
So.. bug? not bug? something totally different?
Likes: Apollo14, antix, SinisterSoft, pie