UnderwaterApps / overlap2d-runtime-libgdx

Overlap2D - UI and Level Editor libgdx runtime
http://overlap2d.com
Other
170 stars 96 forks source link

Rotation and scaling issue fixed #69

Closed simoarpe closed 8 years ago

simoarpe commented 8 years ago

All the changes should be 100% compatible with the previous logic, just added more options: passing your own world, using custom physics, using custom light.

olipoh commented 8 years ago

Ok again something I don't understand:

I create a scene in overlap2d from sources with simone's correction. Ok, it works. I apply some rotations to different assets. Ok, it works. Now I open the scene in a test "game", running with overlap2d runtime from jar... and it works !!! My assets have rotation (and physics). But it shouldn't. The jar libraries don't have the simone's correction.

How is that possible ???

(and moreover, I don't know why, but my assets don't bounce, as they should with a restitution set to 1).

olipoh commented 8 years ago

Alright, I know what happened yesterday and this morning (but I don't know why).

Just now, I rebuilt my "game" project and it had the expected behavior : rotations not applied. I don't know why android studio messed up in the libraries. Usually, when I change branch, it resync gradle and everything is ok. Yesterday it didn't. So I suppose that I had made a mistake somewhere in a library and it spread everywhere in my other projects. I'll be very careful now.

I'm really sorry for that guys.

Anyway, it doesn't change the fact that I have the error messages in the editor from source. And I still don't understand why everything works as if there was no restitution. My ball doesn't bounce.

azakhary commented 8 years ago

VisUI: Warning, using default favorites preference name for file chooser! <--- this part is OK

olipoh commented 8 years ago

Not the error message ? What should I check ?

if I create the shader directory by myself, I don't have any error message. And the directory remains empty...

olipoh commented 8 years ago

I'm still testing the editor against simone's patch, and it seems to work fine. However, I noticed an impact on something else (something that doesn't work fine for me), and I'm not able to say if this is for good or for bad. It's explained here: http://overlap2d.com/forums/topic/physics-rotation-and-pixels-per-unit/

olipoh commented 8 years ago

Ok I tested the editor against the sources provided by simoarpe, and it seems to be ok (except the things I pointed earlier and that might not be related).

azakhary commented 8 years ago

Tested too, all seems legit, merging.

olipoh commented 8 years ago

Actually, I found a problem. It is described here : http://overlap2d.com/forums/topic/physics-rotation-and-pixels-per-unit/#post-3934

leruaa commented 8 years ago

@olipoh Can you please check if my PR #87 fix your rotation problem?