Hi guys,
If I make a fixture like this
local shape = b2.CircleShape.new(0, 0, 40)
body.fix = body:createFixture{shape = shape, density = 10, restitution = 0.2, friction = 0.1, filter = filter}
then I can remove it using
body:destroyFixture(body.fix)
but how do I destroy it, if I load it from a file as here?
body.physics = (loadfile "virusA/virusA_collide.lua")().physicsData(1)
body.physics:addFixture(body, "virA")
Thanks! )
Comments
Basically I'm not using any so I still would not know, but what you can do, is to try to print all object/properties/methods underneath to find which object has the :destroyFixture(body.fix) method
you can use this print_r function
Likes: RogerT