box2d oop with user data

Hey i have a tank class, i pass in the world with a get method then i can draw the tank using a method in the tank class, im having problems adding the userdata sprite graphics. Im using the debug draw tool to draw the bodies. Do i need to pass the layer to my class? or pass the userdata to the layer to draw the ccsprite in the layer i want it drawn? i've tried both and get an assertion error? any idea, at my work computer ill post my code if you need it
I think you'll probably find more help on the cocos2d forums for this.

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