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!
Box2d - Zooming
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- OmarShehata
- Party member
- Posts: 259
- Joined: Tue May 29, 2012 6:46 pm
- Location: Egypt
- Contact:
Re: Box2d - Zooming
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.
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
well, i found my mistake.
at drawing my bodies i just changed the size, not the position
Thanks
at drawing my bodies i just changed the size, not the position
Thanks
Who is online
Users browsing this forum: Semrush [Bot] and 8 guests