- Home /
Specific rotation
So a friend and I are working on making a 2D interactive stamp in unity. I've been fumbling around for two days trying to create the movement for the sun in this! What I want to do is have a 2D plane rotate around a fixed point (i'm using transform.RotateAround), but I also want to find a way to make the object face the same way. So if this helps, i'm trying to make an object move around a fixed point without tilting. So far, i've tried making invisible objects that rotate and embedding the visible object (the 2D sun) within it, and i've also tried making a counter-rotation script, but since the transform.RotateAround function already revolves around the y axis, it just caused to rotation to stop. Any suggestions?
Answer by Eric5h5 · Apr 14, 2013 at 03:17 AM
Make the 2D plane a child of an invisible object that you use with RotateAround. That way you can set the rotation of the child as desired and it won't interfere with RotateAround.
Well, that didn't work, but by adding the rotate around script to the visible object and giving it the exact opposite speed, I was able to achieve the affect I was looking for.
Your answer