As title , I want to make object always face and rotate to another object when target is rotating.
If I understand your question correctly I think I’ve had a similar problem. A solution I’ve found is to have a parent structure something like BoxGroupWrapper → BoxGroup → Box.
Apply a script to BoxGroup that makes it rotate:
void Update () {
transform.Rotate (new Vector3 (0, 0, 45) * Time.deltaTime);
}
Then apply a script to BoxGroupWrapper that makes it always face the object you’d like (In this case the camera):
void Update () {
transform.LookAt(Camera.main.transform.position, -Vector3.up);
}
Hope this helps!