private void Awake() { root = SpringComponent.Create <SpringOffset>("root"); root.transform.parent = transform; arm = SpringComponent.Create <SphericalSpring>("arm", root); rotSpring = SpringComponent.Create <RadialSpring>("rot", arm); //pos = rotSpring.GetPositionRef(); //rot = rotSpring.GetRotationRef(); cube = GameObject.CreatePrimitive(PrimitiveType.Cube); }