The function "getBodiesByCustomString()" is not exist in b2dJson.mm.
Is it not ported to Objective C ++ yet ? How can i use custom properties in Objective C ?
Thanks in advance.
Can not use custom properties in b2dJson for Objective C ++
Re: Can not use custom properties in b2dJson for Objective C
Hm.... looks like I did not update the iOS sample project, if that's what you are using.
The loader does not really need to be 'ported' to Objective C++ because you can just change the file extension. You can take the b2dJson related files from the main sample (in folder titled "box2d-testbed-(C++)") and rename the .cpp file to .mm
I will have to update the sample sometime...
The loader does not really need to be 'ported' to Objective C++ because you can just change the file extension. You can take the b2dJson related files from the main sample (in folder titled "box2d-testbed-(C++)") and rename the .cpp file to .mm
I will have to update the sample sometime...
Re: Can not use custom properties in b2dJson for Objective C
I will try to use .cpp file and let you know the result.
Thanks.
Thanks.
Re: Can not use custom properties in b2dJson for Objective C
I checked C++ sample project but can not found where function "getBodiesByCustomString()" was defined.Maybe my main sample was out of date ?
Re: Can not use custom properties in b2dJson for Objective C
It is in the b2dJson files (.h and .cpp). In the sample project these are under src/Box2D/Testbed/Tests/rubestuff
You can also find them at http://www.iforce2d.net/b2djson/
You can also find them at http://www.iforce2d.net/b2djson/