Converting LWJGL coords to JBox2D coords

Discuss issues specific the Java port of Box2D
zipper9998
Posts: 2
Joined: Mon Jul 11, 2016 4:31 am

Converting LWJGL coords to JBox2D coords

Postby zipper9998 » Mon Jul 11, 2016 4:40 am

Is there a way to convert from the LWJGL 2D coordinate system to the Jbox2D coordinate system? currently I am just dividing by a scale which works well but everything else such as box positions and sizing is screwed up relative to the actual positioning and size of sprites. Thanks

zipper9998
Posts: 2
Joined: Mon Jul 11, 2016 4:31 am

Re: Converting LWJGL coords to JBox2D coords

Postby zipper9998 » Tue Jul 12, 2016 5:40 am

Problem solved!!!!! I just had to set the sprites origin to its centre :))


Return to “Java”



Who is online

Users browsing this forum: Bing [Bot] and 2 guests