Example Spine project with bone physics

Does anyone have an example (or know where one is) of Spine animation combined with physics, specifically bone physics. I can do the standard box2d defold physics but I need to use bone physics and am having a bit of a challenge figuring it out. I learn best from samples.

Specifically, what I’m wanting to do is have the hitbox change as the animation moves. So if the character slides or crouches the hitbox follows the animation. Or if the player swings a sword…the sword hitbox follows the spine animation.

Thanks

You can access a bone’s game object with get_go() at runtime. One option would be to create a game object with a collision object with the bone game object as a parent. It should then follow the transforms of the bone.