[16017-some+help.jpg|16017]

imagine it is top down with Y being up/depth

the red circle needs to look at the green circle (the red arrow shows current direction)

i need this calculation to take place in 1 frame (Quaternion.slerp wont work and LookAt wont work)

was wondering what the formula would be to calc the rotation

Wobak
2
I dont know if there is any easier way, but this should do it:

```
Transform A;
Transform B;
Vector3 AtoB = B.position - A.position;
float angle = Vector3.Angle(A.forward,AtoB);
//B right of a
if(Vector3.Angle(A.right,AtoB) < 90)
{
A.RotateAround(A.up,angle);
}
//B left of A
else
{
A.RotateAround(A.up,-angle);
}
```