So, I wrote an application a while ago (SolidShaper: http://www.zorexxlkl.com/solidshaper), and I'm currently working on a sample for it which uses SFML and Box2D.
Basically it's an application that allows you to create shapes for use in collision detection/physics engines. In other words, with this application, you can create shapes directly for your physics engine without using some workarounds like loading from svg files.
This sample should demonstrate the use of SolidShaper in an actual physics engine (since it's kinda hard to explain to people what SolidShaper is for =X).
This sample demonstrates loading shape from an ssf file into Box2D bodies and displaying it with SFML shapes.
Properties for bodies and shapes can be set from SolidShaper directly, including density, friction, color, etc.
Here's a video of it in action:
http://youtu.be/MKFExir0X-Q
Source code available here:
http://www.zorexxlkl.com/files/downloads/SSFBox2DTest-1.0.1.zip
Basically it's an application that allows you to create shapes for use in collision detection/physics engines. In other words, with this application, you can create shapes directly for your physics engine without using some workarounds like loading from svg files.
This sample should demonstrate the use of SolidShaper in an actual physics engine (since it's kinda hard to explain to people what SolidShaper is for =X).
This sample demonstrates loading shape from an ssf file into Box2D bodies and displaying it with SFML shapes.
Properties for bodies and shapes can be set from SolidShaper directly, including density, friction, color, etc.
Here's a video of it in action:
http://youtu.be/MKFExir0X-Q
Source code available here:
http://www.zorexxlkl.com/files/downloads/SSFBox2DTest-1.0.1.zip