Rotation of Object toward TargetObject Rotation Identity.

Hellow,

What I'm trying to do is to rotate(on all angles (x,y,z)) an object to the current rotation of my target, over a set time.

Example:

Let's name my Object that is to be rotated : MainObj And the Object that is the the target : TargObj

The current vector3 rotation of my MainObj is ( 5, 10, 15).

The current vector3 rootation of my TargObj is ( 20, 5, 35).

I want my MainObj rotation to go to my TargObj rotation. So to go from ( 5, 10, 15) to ( 20, 5, 35) over X time.

How'd I'd achieve that? I already achieved this goal for the position of the objects. But it seems I cannot use the same method for rotations. I'm trying to us the AniMate script, but fail to apply it to a target object at the moment.

Any way, any help is appreciated.

Thank You.

Take a look at Quaternion.Slerp(). (Interpolating between orientations in Euler-angle form is problematic; interpolating between orientations in quaternion form is much less so.)