I have a circle-shaped dynamic body and I need to resize it during the game (like a point , It grows for a cycle and then it moves). How do i I have an idea - this is to use some animation (circle has only one radius, but due to the animation it looks like the circle grows), but I'm not sure whether this is correct or not. (Besides this I do not know how to realize it)
For the scaling circle, Simply scale it to sprite.setScale (float) , if your phantom box is attached to 2d circle-size, get body size and set radius
shape shape = body .getFixture () getShape. Shape.setRadius (radiusValue);
And if you are using shape renderer, then multiply the properties of the shape renderer.
Comments
Post a Comment