Box2d - Zooming

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
reklrekl
Prole
Posts: 2
Joined: Sat Aug 04, 2012 2:13 pm

Box2d - Zooming

Post 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!
User avatar
OmarShehata
Party member
Posts: 259
Joined: Tue May 29, 2012 6:46 pm
Location: Egypt
Contact:

Re: Box2d - Zooming

Post 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.
reklrekl
Prole
Posts: 2
Joined: Sat Aug 04, 2012 2:13 pm

Re: Box2d - Zooming

Post by reklrekl »

well, i found my mistake.
at drawing my bodies i just changed the size, not the position
Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests