playMaker

Author Topic: [SOLVED] Mapping camera orientation to joystick controls  (Read 2142 times)

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
[SOLVED] Mapping camera orientation to joystick controls
« on: March 25, 2014, 02:50:24 PM »
Hello all,

I've created a first person character controller for myself using Get Axis Vector and Controller Simple Move on the character object and Mouse Look on the main camera.

Of course this setup isn't joystick-friendly.

Is there a best practice way of mapping right joystick inputs on a standard XBox Controller to the camera orientation, in tandem with the Mouse Look?

I assume this is a common enough question, but I've done some searching on the forums without much luck.

Any advice most welcome!
« Last Edit: April 02, 2014, 05:28:36 AM by HiFiHair »

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
Re: Mapping camera orientation to joystick controls
« Reply #1 on: March 26, 2014, 08:49:55 AM »
Giving this a little bump. Scared I'm relying on mouse inputs too much. Keen to know how one goes about enabling controller inputs too!

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • @HiFiHair
Re: [SOLVED] Mapping camera orientation to joystick controls
« Reply #2 on: April 02, 2014, 05:29:53 AM »
Solved it with this video:


I didn't fully appreciate you could just duplicate the axis entries in the Input Manager. All I had to do was create an additional Mouse X and Mouse Y which were configured for 4th and 5th joystick axes respectively and it all works beautifully.