Closed kevinbaptist closed 3 years ago
Auto-tracing is possible only for static images (https://github.com/rednblackgames/HyperLap2D/wiki/Basic-Tools#-polygon-tool) and not for animations. There are few reasons why:
You can however add Box2D collision to Spine animations without complicated stuff, EsotericSoftware team provide very good examples including Box2D support.
Anyway, thanks to point out the crash, I'll fix that with an error message instead of NPE.
I think also that you might encounter an issue with your project if you've planned to use forces or velocity. Box2D does not works well with big worlds (it has a limitation on velocity speed), I see that you've used PPWU = 1
, the world size should be smaller in order to get Box2D working properly, I suggest something like 64
for Pixels per World Unit. If you aren't interested to box2d gravity and velocity and you need just ray casting to detect collisions, it's fine so :)
HyperLap2D Editor crashes when click on Auto Trace (Polygon Component)
To Reproduce
Stack Trace
Desktop: