My question is more a pure C*+ question or Box2D question but as I don’t know where to ask it…I ask it here !
I have got a *body of type b2Body and want to do something like this :
<pre> body~~>SetUserData;
</pre>
It doesn’t work as SetUserdata expects a “data” type.
Here is the iOS version which works:
<pre>
NSNumber *number = ;
_body~~>SetUserData;
</pre>
How to do the same in C+ ?