Rotating an Object Around a Point? C#
Hello, I am looking to figure out how to rotate a 2d object in a 2d world around a point in the world for a specific angle with the intent to reverse it afterwards. I was trying to use the RotateAround bit of code but it just seems to be squishing my sprites when I run the function? This is how my code is set up, Vector3 Axis = new Vector3(1, 0, 0); gameObject.transform.RotateAround(new Vector3(-4.5f,0,0), Axis, 1); Would anyone be able to explain to me why this is happening and/or be able to help me figure out how to make my original idea work?
Your answer
Follow this Question
Related Questions
How to set limitations on rotateAround in C#? 1 Answer
Rotate an object around one of his childs in the self space (not the world space) 0 Answers
Rotate an object around one of his childs in the self space (not the world space) 2 Answers
Problems With .rotate behavior 1 Answer
Rotate object arround other object, but always facing the camera 1 Answer