• Unity
  • Anima2D feature possible in Spine?

Related Discussions
...

Hi,
just stumbled upon this video on the Unity Youtube channel.

The feature that cought my eye was the ability to add physics springs to the bones so they would dynamically react to the characters movement. I guess that would need some coding to get done using Spine. Could you point me in the direction on where to start if I wanted to achieve a similar effect?

Cheers,
Felix

spine-unity allows bones to be controlled by Unity GameObjects, so you can setup GameObjects to react to physics and have those affect your skeleton. Pharan may be able to provide a specific example.

Ah yes, of course. Probably with the override mode in the Skeleton Utility Bone. Thanks!

Why did you start in the middle? The spring bones is near the end. 21:25

But yes, SkeletonUtilityBone will do the trick, and it's up to you what Transform-controlling solution you want to use.
It could be Box2D or 3D physics or whatever he's using in the demo (not sure if it's bundled with Anima2D).
You could also opt not to use SkeletonUtility at all if the underlying system makes more sense that way. Since you do have access to Spine bones directly, just do what SkeletonUtility does, but without the extra stuff.

The SkeletonUtilityAnimatedPhysics sample scene was an early sample of this.

Yep, sorry about the wrong time stamp in the video - and thanks for the info!

I confirm that you can add gravity and cool stuff in unity to your skeletons, Also I know that the programmers I worked with in a Global Game Jam posted their source code for this game http://globalgamejam.org/2016/games/spinder so I hope it might be useful (: (I, on my side, was stunned we could actually make it work in 48h and maybe it's not that exceptional but it does look pretty good!)