Box2d Editor Download

0 views
Skip to first unread message

Anette Bartha

unread,
Jan 19, 2024, 2:16:03 AM1/19/24
to submulumxant

Like you can see on my pictures when I move the camera my tiles get those black lines.
I am using box2d for my physics, so I had to scale my pictures.
My world is scaled like this: 32 pixel is one meter (I tried 100 pixels for one meter and same problem).

box2d editor download


DOWNLOAD https://t.co/kvRsZgt5q2



I set the view of my OrthogonalTiledMapRenderer to my scaled box2d Camera.
The player uses float values since it is scaled to box2d.
The camera follows the player.
At some uneven float values my tiles mess up.

I found a program called Physics body editor here: -10-physics-body-editor-2-0-ex-box2d-editor but the program is quite uncomfortable to use (doesn't matter, actually is unfinished) and polygons are very precise, using a lot of decimals, and I just need int values in the array.

Bingo! According to the comments, I can conclude that my loadSection method (shown at the beginning) is being executed while the box2d world is locked. Here, m_flags=2 and e_locked=2 , so it gives me a value greater than zero, thus IsLocked() returns a true value and so, there I have my null value. However, I don't even have a clue of the source of those variables values (m_flags and e_locked).

f448fe82f3
Reply all
Reply to author
Forward
0 new messages