Box2d with texture


I’m trying to add different textures to objects in box2d but so far unsuccessfully. I’m trying to assign the texture of objects custom = BoxesD checking in shape. Box2d adds texture but the next time you add an object passes it to another without saving every id.

Thanks for help.

Box.v4p (52.4 kB)

Fixed patch it works good for me:)

Box2.v4p (53.7 kB)