- Home /
Rotate a Sprite Without Using Its Pivot Or Parent GameObject
The title is pretty self-explanatory, but I need to rotate a sprite at a given point without using its pivot or any parent game object. The scenario is as such:
I have an animated point in space.
I have a sprite in the same hierarchal level as that point in space.
The animated point in space intersects the sprite.
I need the sprite to rotate at the point in which the point in space intersects the sprite.
Thanks, guys. I know I learned this in trigonometry, but that was like four years ago. :)
Answer by CraigGraff · Apr 15, 2018 at 02:11 AM
There are a number of ways to do this, but Transform.RotateAround is probably the easiest.
I'm working on that now and was still experiencing the same issues where it only rotates at its center, but I'll let you know in a few. Thanks for the quick reply :)
Your answer
Follow this Question
Related Questions
Animated Sprite Rotating Around It's Own Axis Instead Of Parent's Using Script. Details Provided. 0 Answers
I want to create an animation with multiple sprites images on a prefab ? 0 Answers
2D sprite character movement 3 Answers
unity gameobject to sprite (UI Image) 1 Answer
Disabling interpolation for Z rotation within animation window? 0 Answers