• Runtimes
  • Debug draw for spine bones

Related Discussions
...

I'm trying to draw debug lines for spine bones in my application. These should match up with the bone display in the spine editor. How would I go about constructing the endpoints for the lines that represent a bone with its length? I'm using the spine c runtime.

Thank you!

Are you using your own rendering engine or something like SFML or cocos2d-x? Our cocos2d-x runtimes include debug rendering of bones. If you wrote your own custom rendering engine, that code should serve as an inspiration 🙂

spine-runtimes/SkeletonRenderer.cpp at 3.8

Hi Mario, yes I am using my own rendering engine. Thank you for your example! It was very helpful and I was able to get it working from that!