pbox2d: changing the size of shapes in an arraylist

edited January 2014 in Library Questions

I have a sketch with a bunch of falling boxes (in an arraylist). My sketch is structurally similar to the Boxes example sketch by Shiffman

I want to make all the boxes expand and contract in size in a smooth way. But I am having trouble figuring out how to do it with pbox2d. It seems I cannot just code width = width + 1 and then apply it to all the shapes/bodies in the array ???

Please help!!!

Thanks.

Tagged:

Answers

  • edited January 2014

    If you have arrayList of boxes then just update the width and height inside the class.

    Or just post your code o that I can have a look then I can tell you properly

Sign In or Register to comment.