Change the shape of body dynamically
- by user45491
I have a problem where i have a ballon which i need to continuously inflate and defalte in update method, I have tried to used setScaleCenter but it is not giving desired result.
Below is a code i am trying to make work
scale += (float) ((dist-lastDist)/lastDist);
Log.d("pinch","scale is "+scale);
Log.d("pinch","change in scale is "+(float) ((lastDist-dist)/lastDist));
player.setScaleCenter(scale, scale);
player.setScale(scale);