- Home /
Question by
Kodoka · Dec 11, 2015 at 04:12 AM ·
transform.positionrotatearound
Weird Results When Changing Transform And Rotation
I'm getting undesirable results when attempting to change the transform of a rotated object. I have the following code attached to the First Ring Two Wide and Second Ring Four Wide objects, void Update () { transform.RotateAround(centerCircle.transform.position, Vector3.back, 1); }
When I attempt to change the position of the objects, they move oddly. I'd like for them to move directly away or towards the Center Circle, no matter their rotation, but don't know how to produce these results. Does anyone know how?
[1]: /storage/temp/59772-issuess2.png
issuess1.png
(131.1 kB)
issuess2.png
(120.0 kB)
Comment