Skip to content

Commit e712a64

Browse files
committed
fixed getting polygons with vertices
1 parent 114a270 commit e712a64

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

echo/Shape.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class Shape implements IProxy {
2929
case CIRCLE:
3030
s = Circle.get(options.offset_x, options.offset_y, options.radius);
3131
case POLYGON:
32-
s = Polygon.get(options.offset_x, options.offset_y, options.sides, options.radius);
32+
if (options.vertices != null) s = Polygon.get_from_vertices(options.offset_x, options.offset_y, 0, options.vertices);
33+
else s = Polygon.get(options.offset_x, options.offset_y, options.sides, options.radius);
3334
}
3435
s.solid = options.solid;
3536
return s;

haxelib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"description": "Simple Physics Library written in Haxe",
66
"contributors": ["austineast"],
77
"url": "https://austineast.dev/echo",
8-
"releasenote": "Linecasting refinements",
9-
"version": "1.1.0",
8+
"releasenote": "fixed getting polygons with vertices",
9+
"version": "1.1.1",
1010
"dependencies": {
1111
"hxmath": ""
1212
}

0 commit comments

Comments
 (0)