Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
cbump querySegment() issue — Gideros Forum

cbump querySegment() issue

antixantix Member
edited February 2019 in Bugs and issues
I am upgrading some of my games (because google are shutting down stuff) and I came a cross an issue where cbump querySegment() is not working correctly...
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')
The code above results in the following output..
lua bump found 1 items
native bump found 0 items
I would expect both to find one item :(

Comments

Sign In or Register to comment.