credmp / box2d-editor

Automatically exported from code.google.com/p/box2d-editor
0 stars 0 forks source link

improvements #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. It would really help me if it was possible to add attributes to the shapes. 
Now I have to hold the image paths in my entities to link them to correct 
bodies. It's impossible to add attributes manually to the xml file because they 
are erased every time i change something and save in the editor.

2. It would be nice to be able to change the origin of the coordinate system in 
the editor.

3. There could be an option to change the units. Apparently the ration is 
64px/25 units. It is a small thing to convert it in my loader, now that i know 
what it is, but at least you could mention it somewhere.

Original issue reported on code.google.com by ozz...@gmail.com on 18 Jan 2012 at 10:42

GoogleCodeExporter commented 9 years ago
1. Next revision will feature named shapes. Image paths won't be necessary 
anymore. I'll also add a "userData" field so you can add extra stuff.

2. It's also planned in next revision ;)

3. There is no such ratio. Actually, the shapes are normalized to a 100x100 
square box (like if your image was resized to 100x100). Indeed, the shapes you 
create shouldn't be bound to any pixel measure since you may want to reuse them 
for multiple objects with different sizes. That's why the provided loader 
(FixtureAtlas) asks the user for the width and height of the bodies that will 
be loaded.

However, next revision will feature a proper way to size the shapes, see tthis 
picture: http://twitpic.com/7mnii4/full Shapes will be normalized in a 1x1 
square, always.

Original comment by aurelien.ribon on 18 Jan 2012 at 10:51