Closed sruloart closed 9 years ago
Yes, using that for polygon collision (without needing a Physics engine and avoiding to do pixel-perfect checks) is what got me started. :smirk:
By the way I'm using a nightly build of the Haxe compiler - 3.1.0 (git build development @ 658f6a3), and that's probably why you're getting an error. You can retry using one of the latest from here: http://haxe.org/download#git-builds-aka-nightlies.
I couldn't build this, something about "Variable initialization must be a constant value", maybe it's a Haxe3 issue...
This fits perfectly to an Idea I had about using Nape to trace polygons from HaxeFlixel sprites, and then use it (points array) for some cool features like Polygonal Collisions, Polygonal Atlases, Level Meshes (+uv's) and more. For example, something like this: Reference: The original video is about boosting performance in pre-4.3 Unity: http://www.youtube.com/watch?v=fHFsQHvzfwo (it's like a hour long, but very on topic).