- Home /
Joystick , deleting corner movements ?
i need help with joystick. I have bought Logitech Extreme 3D Pro Joystick , and i have some questions.
First , in my project we have a simple plane system. Turn Straight right - left , Turn with degree right-left (roll), Go down - up
Now , when i pull my joystick thing camera looks up , ok . When i push it camera goes down , it's ok. When i move it right camera moves right with a degree. And when i move it left camera moves left with a degree , it's ok too.
But , when i move my joystick to the left , while i push it (like to the left top corner ) my camera goes down and turns with degree and it's being very hard to adjust it's original position , so i don't want corner
Answer by ks13 · Nov 25, 2011 at 02:08 PM
From what i understood, either you use Space.Self for every translation and rotation while you'd want to use Self.World for Translation and Rotation on Y axis. Making your plane move like a FPS character.
Or, you just want to supress 2 movements at same time. In this case you only have to check if the Jostick id in the "corner" and do only the prefered movement. Example :
Let's say you have "Joy X" as the X axis and "Joy Y" as the Y axis in Unity Input Manager. You do something like :
//This is your LookUp + LeanRight
if(Input.GetAxis("Joy X") == 1 && Input.GetAxis("Joy Y") == 1)
//Here you do only one of the 2 actions
LookUp();
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Pasive character movement sequences (rolling, climbing, etc..) 1 Answer
Unity iPhone Roll a Ball Tutorial. Joystick example? 1 Answer
Mimic Keyboard Controls with Joystick 0 Answers
want joystick controls explaination.... 0 Answers