@antix sorry I just posted the code above, now that you pointed this I need to redo how I move the player. I will have another look at iforce tutorials and will let you know. My code above makes no sense but strangely it works fine.
Thank you antix
EDIT: I have tested with this code (game loop):<pre class="CodeBlock">
With no luck the dynamic bodies still interpenetrate.
PS: don't look at the naming of my variables I am just testing PS2: It's been days I am trying to figure this out, in my case I wanted to have some rocks fall on the player and on the ground. When the rocks have finished hurting the player and then lay on the ground I wanted the player to be able to walk over them (that was the idea). PS3: that's weird box2d behavior, isn't it? PS4: will try to post on the box2d github
Comments
My code above makes no sense
Thank you antix
EDIT: I have tested with this code (game loop):<pre class="CodeBlock">
PS: don't look at the naming of my variables I am just testing
PS2: It's been days I am trying to figure this out, in my case I wanted to have some rocks fall on the player and on the ground. When the rocks have finished hurting the player and then lay on the ground I wanted the player to be able to walk over them (that was the idea).
PS3: that's weird box2d behavior, isn't it?
PS4: will try to post on the box2d github