Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ilanb

Pages: [1]
1
DOTween & DOTween Pro / Block child gameobject rotation
« on: March 13, 2016, 11:32:41 PM »
Hi,

Trying to rotate a null(earth globe) gameobject with child gameobject(country), but child rotate separatly and null don't rotate.

http://screencast.com/t/3jjhFuyB5FHn

Here is code used :

m_Rigidbody.transform is the null gameobject.

Code: [Select]
switch (gameObject.name)
            {
                case "Left":
                    m_Rigidbody.transform.DOLocalRotate(-Vector3.up * m_Torque, 2, RotateMode.LocalAxisAdd);
                    break;
                case "Right":
                    m_Rigidbody.transform.DOLocalRotate(Vector3.up * m_Torque, 2, RotateMode.LocalAxisAdd);
                    break;
                default:
                    break;
            }

I have also tried some other method with or without rigibody... without success. How can I fix this ?

Thanks

2
Hi,

I have just upgraded my unity project to 4.5.6 unity version and updated with last Dotween version too.
When I start project in editor or if I build for iOS all tween not work.

My application worked fine before update, I have cleaned dotween folder before update it... i not have error message when I press play, just tween won't work

Thanks for Help

Ilan

Pages: [1]