SHARE
TWEET

Untitled

a guest Oct 5th, 2015 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float[] f = new float[] {100, 0,  100, 40,  0, 40};
  2. PolygonRegion pr = new PolygonRegion(new TextureRegion(new Texture("terrain.png")), f, triangulator.computeTriangles(f).items);
  3.  
  4. //Later in render
  5. batch.draw(pr, 50, 50, 100, 50); //Yes it's a PolygonSpriteBatch
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top