- Home /
Move around object
I have problem with Unity - 2D objects. I want to rotate object around circle and on click translate it (with same angle) outside the circle to another and still rotate.
Rotating is working with RotateAround. But what about translating it to another circle?
I explained it in the image:
Answer by MrRightclick · Jul 18, 2016 at 01:22 PM
You could try raycasting "up" from the player and checking if there is another circle in sight when clicking. After that move the player towards this ball and start rotating around it instead.
Your answer
Follow this Question
Related Questions
how to rotate GameObject towards joystick 1 Answer
transform.Rotate will not work 1 Answer
How i can equal 2 Tranform Rotations? 1 Answer
stop rotate around c# 1 Answer
Find the Y rotation of a cylinderTarget tracked with Vuforia 1 Answer