Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: MickeyMe on June 27, 2014, 10:42:40 PM
-
Hey. I can't see anything in the Actions list or in the various tutorials about mapping dual stick game controllers (PS3/360 etc.).
The movement controller automatically gets mapped to the left stick, but I want to use the right stick to tell the player where to look (Geometry Wars style).
If anyone can shove me in the right direction I'll be super grateful. :-)
-
You have to setup the Unity Input Manager to map the extra axis.
This doesn't seem to be terribly well documented, but here's an example:
http://wiki.etc.cmu.edu/unity3d/index.php/Joystick/Controller
There are also third party solutions like this one:
https://www.assetstore.unity3d.com/en/#!/content/14695
Maybe people with more experience trying these different approaches could offer some thoughts. I also remember seeing other posts about this on the forums...
-
How could it be used to allow a custom input controller?
-
I my self do this with Cinput.
Its easy t setup and well documented.
You can find some actions in the forums here or make your own( change input. to cinput.)
-
Thanks for the tip, Ghost010!
-
This is pretty easy after you've done it more than once. The biggest thing is making sure you know what axis to set up. For 360 the right stick is 4th(horizontal)and 5th(vertical). When I am using playmaker actions I like to copy mouse X and Y (ctrl+d) in the Input Manager and then change the input to joystick and axis. This way I can use Mouse look actions with little fuss.
After that you can use a Get Axis Vector and feed that vector 3 into a Smooth look at direction and this will rotate your character to face the axis direction.