https://github.com/harayoki/SpineTest1/blob/Straling2_Spine3_4_demo/src/harayoki/spine/starling/SpineHittestUtil.as
似たような物は探したのですがうまく作動しませんでした。

なにか方法はないでしょうか?
---
(チェックすべき)すべてのスロットにPointを入れPointAttachmentを使って対応しました。
チェックするスロットが多くなるとぐだぐだになると思いますが…

RegionAttachment
と MeshAttachment
に対してテストできるように独自のロールを作りたいなら、Polygon クラス 。 添付ファイルのために計算したワールド頂点配列に vertices
フィールドをセットし、containsPoint()
や intersectsSegment()
のようなメソッドを使います。RegionAttachment
and MeshAttachment
, you could use the Polygon
class. Set it's vertices
field to the world vertices array you calculate for an attachment, then use any of the methods like containsPoint()
or intersectsSegment()
.