Home / Archive by category "Animation"

Animation

Improve the “SpringBone” used to swing things in Unity.

Original version is here. SpringManagerEx.cs using UnityEngine; using System.Collections; public class SpringManagerEx : MonoBehaviour { public SpringBoneEx[] springBones; void Awake() { springBones = (SpringBoneEx[])gameObject.GetComponentsInChildren(); } private void LateUpdate() { for (int i = 0; i < springBones.Length; i++) { springBones[i].UpdateSpring(); } } } ...
Read More
Top