Hey there.
How do I write a script to simply controlling an object with an axis instead of a key?
I’ve been using this, but I’ve hooked up my Xbox 360 joystick and want to some of the axes on it controll my character.
This is what I used for the buttons. And it’s also pretty much all I can do with javascript (so talk to me as a newbie)
if(Input.GetButton("right")){
transform.Translate(0.1,0,0);
I know this is pretty basic stuff, but for some reason I can’t find ANYTHING about scripting an axis control.
Thanks!
//Nithel