Code: Select all
world = love.physics.newWorld(0, 0)
shape = love.physics.newCircleShape(1)
body = love.physics.newBody(world, 0, 0, 'dynamic')
fixture = love.physics.newFixture(body, shape)
same_fixture = body:getFixtureList()[1]
print(fixture == same_fixture)
print(rawequal(fixture, same_fixture))
Code: Select all
true
false
It seems like somewhere in the code, same box2d objects are being wrapped in different lua values. I wonder whether this is a bug, or is there a good reason for it to work like that. Any thoughts?