Closed simoarpe closed 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).
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.
VisUI: Warning, using default favorites preference name for file chooser! <--- this part is OK
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...
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/
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).
Tested too, all seems legit, merging.
Actually, I found a problem. It is described here : http://overlap2d.com/forums/topic/physics-rotation-and-pixels-per-unit/#post-3934
@olipoh Can you please check if my PR #87 fix your rotation problem?
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.