- Home /
how to make gameobject follow finger touch position within custom joystick
I am trying to make a custom joystick in C#. I have two sprites (below): an outer circle (opaque) and an inner circle (solid white). The outer circle is meant to be the boundary for the joystick, which is the inner circle.
I want to make the joystick move when a finger touches it, have it stop when it reaches the outer rim of the boundary, and have another game object (the player) to move accordingly with the position of the joystick. I have tried using raycasts, but I am not very familiar with them. Does anyone know how I should go about doing this. Any help is appreciated. Thanks in advance.
Answer by hbalint1 · Apr 16, 2015 at 10:01 PM
Maybe try this series: https://www.youtube.com/watch?v=ZGvkaHHQD7c
Your answer
Follow this Question
Related Questions
The joystick isnt working in Unity remote 5 3 Answers
Joystick / Button 3 Answers
[HELP] Joystick Movement/Button Movement 0 Answers
How would I add android support to this character controller? 1 Answer
Iphone joystick where player touches 0 Answers