changing box2d body shapes dynamically

Discuss issues specific to using Box2D on the iPhone
gamist
Posts: 17
Joined: Wed May 30, 2012 11:05 am

changing box2d body shapes dynamically

Postby gamist » Wed Jun 12, 2013 7:33 am

Is it possible to change the shape of a Box2d b2Body dynamically? I want to do this to achieve the following.

i). Increasing the radius of a circle shape at a certain rate

ii). Changing the dimensions of a bounding box for a sprite to match the changing animation frames.

abdulthegamer
Posts: 2
Joined: Wed Jun 12, 2013 7:51 am

Re: changing box2d body shapes dynamically

Postby abdulthegamer » Sat Jul 13, 2013 2:02 am

Yes ... u can its possible....

u can scale sprites using SetScaleX and SetScaleY...


Return to “iPhone”



Who is online

Users browsing this forum: No registered users and 2 guests