Question by
CryoGen14 · Apr 21, 2020 at 02:40 PM ·
scripting problemtouchrotate objecttouch controlsorbit
Orbit an object around another based on touch input
Hi everyone!
I'm quite new to unity, with my only previous background in programming being in AGS.
Anyway, I've been stuck with this problem for a while, I want to make an object orbit another object, but have it orbit towards the players touch input(it can be anywhere on the screen relative to the orbiting object) the distance from from the objects should remain the same though. I'll add some pictures to help illustrate what I'm trying to achieve.
orbit-2.png
(12.6 kB)
orbit-1.png
(8.7 kB)
Comment