public class PolygonRegionLoader
extends java.lang.Object
Constructor and Description |
---|
PolygonRegionLoader() |
Modifier and Type | Method and Description |
---|---|
PolygonRegion |
load(TextureRegion textureRegion,
FileHandle file)
Loads a PolygonRegion from a PSH (Polygon SHape) file.
|
public PolygonRegion load(TextureRegion textureRegion, FileHandle file)
s 200.0, 100.0, ...
Lines not prefixed with "s" are ignored. PSH files can be created with external tools, eg:
https://code.google.com/p/libgdx-polygoneditor/
http://www.codeandweb.com/physicseditor/
file
- file handle to the shape definition file