Page 1 of 1
Box2d - Zooming
Posted: Mon Oct 29, 2012 9:12 pm
by reklrekl
My question is: how to zoom physic bodies made with love.physics.
Currently i'm just able to zoom the graphics of the bodies, but the bodies have the same hitboxes.
Thanks!
Re: Box2d - Zooming
Posted: Mon Oct 29, 2012 9:41 pm
by OmarShehata
You don't need to zoom or move the physics bodies whatsoever.
You scale up all the graphics, or implement some sort of camera system, and that's pretty much all you need to do. If you're having trouble feel free to post some code or the .love of your project and we can help.
Re: Box2d - Zooming
Posted: Tue Oct 30, 2012 3:37 pm
by reklrekl
well, i found my mistake.
at drawing my bodies i just changed the size, not the position
Thanks