- Home /
Question by
djohnson1235 · Jun 10, 2016 at 12:09 PM ·
rotationorbittransform.rotatearound
how to get transform.RotateAround to orbit, not spin
So i'm trying to simply make an object that circles around a center point in a tower defense game, however no matter what i put as the center point, it just ignores it and spins on the center of it's own axis which obviously isn't what i'm looking for. what am i missing to adjust it so it works properly?
the line of code in mention is as follows:
transform.RotateAround (gundad.gameObject.transform.position, Vector3.forward, 1f);
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612082618im_/https://answers.unity.com/themes/thub/images/avi.jpg)