Question by
Dankdenom · Sep 23, 2018 at 08:04 AM ·
rotationrotate objectrotate-around
Rotatin an object around another object
I have this camera that needs to rotate around this gameobject named pin. I tried using RotateAround but camera just rotates around itself.
transform.RotateAround(pin.transform.position, new Vector3(0f, 1f, 0f), t * 100 * Time.deltaTime);
"t" is just a value between 0 and 1. I am really new to this so if what I am missing is something obvious, plz don't go hard on me.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612175114im_/https://answers.unity.com/themes/thub/images/avi.jpg)