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

1 Like

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.

it will be really nice to see an example of defold project + spine physics.

Is there a public example from Esoteric software with a Spine model with Physics that we can use?

1 Like


this one should work

I think I understand what you are talking about, I’m working on a small demo

1 Like

Here is PR that adds new function spine.physics_translate(url, vector3)

But I think it’s not what the initial post was about.

6 Likes