• Editor
  • Best Way To Get Bounding Box of Whole Skeleton

Hey guys, amazing work on Spine. Thanks for getting so much done so quickly! I'm wondering if there is a good way (or something is planned in the future) to get the overall axis-aligned bounding box of a skeleton (not just bones, texture attachments as well) while it's being animated. Obviously this is something trivial to do with traditional flipbook animations, and more complex with skeletal animation. But there are a few places in my game I want this data, so I thought I'd ask, since I'm still trying to make up my mind about switching over to spine for my current project.

edit
You know, after thinking about it a bit, I think this question is actually an issue of premature optimization. I know that spine can handle individual bounding boxes for each texture attachment, so updating a main bounding box every frame should be very easy to write


I was basically asking whether there is a faster way to do this than the obvious method I've just described. So really, I was sneakily optimizing way ahead of time... Please ignore/remove this post, if updating a bunch of bounding boxes ends up being a problem I'll just find a way to cache the values or something.

Thanks a lot,

Alex

Related Discussions
...