How do I scale a texture within the inside of a PolygonRegion?

by RedLipsAlwaysLie   Last Updated July 17, 2017 08:13 AM

I have a Box2D body which plays the role of the ground, and PolygonRegion, to give the body a texture. I want to texture repeat inside the PolygonRegion, to fill the whole body with a small image. However, there is a problem: the texture which I use stretches up, inside the PolygonRegion. Maybe it happens because the texture greater than the body.

How do I scale a texture within the inside of a PolygonRegion?

Tags : java libgdx


Related Questions


LibGDX and Sound Priorities

Updated May 17, 2015 21:05 PM



Shaperenderer not showing any shapes

Updated April 18, 2015 20:05 PM

Trying to get OOP working with libgdx

Updated April 18, 2015 21:05 PM