- Düzenlendi
2D Hinge Chain
Hello!
I've been trying to make a cape attending to physics, however, I keep failing. I followed one of the videos shared here (which seems to use a 3D hinge chain) but I haven't got the results I was looking for (animation was flickering a lot). I tried with a 2D hinge chain, and the character does weird stuff.
I applied Kinematic shadow to cape-root and everything said in the former video, yet I keep having terrible results like the one above. I'm also sending you the project files to your email just in case you need to check the project.
Hi! Please try our very recently updated and improved "Create 2D/3D Hinge Chain" functionality, it creates a more sophisticated physics rig which should solve your problems. The updated feature is available in the latest 3.8 and 3.9 unitypackages here:
Spine Unity Download
There is now also an example scene that demonstrates a working cape setup using these generated hinge chains, it can be found under "Spine Examples/Other Examples/SkeletonUtility Platformer HingeChain Physics".
There will also be a blog post about it soon that demonstrates the updated feature, but I assume you will figure it out anyway. Just be sure to adjust the drag and angular drag values at the generated Rigidbody
objects to achieve the desired weight effect.
I have the 2d Hinge Chain working, I'm just having trouble with the Flipping of the character?
is there currently a safe way of flipping the character? rotating Y seems to give similar undesired results.
other than that I'm loving it!
EDIT: actually ignore me, I just found ScaleX on the skeleton, and it works great!
Glad you got it working! To follow up, the blog post has since been put up and you can find it here:
Blog: 2D and 3D physics for spine-unity
Thanks for letting us know hafazeh, glad you like it!
And as you discovered, please use ScaleX
for flipping the skeleton when using the generated hinge chain rigs. Especially the 2D hinge chain physics rig components depend on SkaleX
for proper flipping, as Unity's 2D physics are not handling rotation around the Y axis too well.