• Runtimes
  • Using Physics colliders with Unity 2dtk and Spine

Related Discussions
...

Hi everyone,
I'm trying to get Spine to play nicely with Unity's 2d Toolkit collider generation. It seems like when I use Spine to create animated sprites 2d Toolkit is not able to automatically add colliders to them (it does work when I create a native 2D Toolkit sprite object). This might not be a problem Spine can solve and needs to be handled by 2D Toolkit itself, but I have a feeling I might be missing something here?

Thanks 🙂

From what I can tell the 2dtk collision genered in the Sprite Collection editor is ignored - the only thing being passed to Spine is the atlas data.

I'd be happy to hear this isn't so, or that there's a possibility of supporting 2d2k's colliders, as they're pretty useful.

Afraid I don't know anything about 2d Toolkit and it's colliders, so I can't help out here. Hopefully Nate will be able to chip in soon.

Not to familiar with TK2D.

But I think it's partly because Spine uses one mesh to draw all images/parts, and 2D Toolkit assumes each GameObject only has one atlas region/image. If 2DTK were to generate colliders for a Spine Skeleton, how would it be arranged in the hierarchy?

7일 후

Indeed, Spine uses a single gameobject. A user here has experimented with generating colliers in Unity.