userData and grouping

Hi,

Just after a bit of help. I want to be able to group a couple of objects together, a couple of circles and a couple of boxes, and see them visually.

The problem is that there only appears to be one userData property for each bodyDef, so, erm, I'm a bit stuck to be honest.

The final sprite / image can just be one pre-defined bitmap just made up of the separate parts, but testing it in the mean time is a bit of a mare as it's a moving object ( Well, a rotating one ), so I really need to see it during development as it's component parts.

Thanks in advance, oh and sorry if it's a dumb question.

Squize.
I believe every b2Body has a userData, as well as every b2Shape. So a body made up of two shapes would have 3 userData variables in total. That being said, those userDatas can be structs/classes with many values if needed.
Thanks for the reply mate.

Squize.

Original thread: https://box2d.org/forum/viewtopic.php?t=253