I was trying out box2dlights exactly how it’s done here
This is what I should see:
But when I apply box2dlights, this is what I see (which is the bottom-left most corner of the screen above):
Any idea why this is happening?
I was trying out box2dlights exactly how it’s done here
This is what I should see:
But when I apply box2dlights, this is what I see (which is the bottom-left most corner of the screen above):
Any idea why this is happening?
Probably you are screwing up the screen camera. Box2dLights needs it own camera in world instead of pixel coordinates.
Example setup is here.
Wow I had no idea what prior setup it needed. Thanks!
Please note, don’t try a 1:1 scale. It’ll mess up stuff
Thanks. I’m using 32 pixels = 1 meter.