Hi,
I’m tryng to rotate a group of objects(in the same sense, clockwise for example) , torwards a direction.
Right, now i’m doing the following :
var targetRotation = Quaternion.LookRotation(targetPos - transform.position, Vector3(0,1,0));
oldRotation = transform.rotation;
transform.rotation = Quaternion.Lerp(oldRotation, targetRotation , the_speed);
This works just fine if i move one single object.
Let’s imagine 2 objects, X and P
____X_______P
____T
In this case, object X will turn clockwise and object P will turn anti-clockwise.
Is there a way to make them both turn clockwise, so they don’t colide when turning ?
thanks,
Bruno