playMaker

Author Topic: Issues with Get Axis Vector (Relative to Camera) with Joystick  (Read 234 times)

OddButAwesome

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
Issues with Get Axis Vector (Relative to Camera) with Joystick
« on: January 03, 2017, 05:54:15 PM »
Hi all,

I have had a bit of a look around and some people have had similar issues but I still can't seem to solve mine when applying what they did to solve theirs.

As per subject - when using WASD, the motion of my 3D third person camera character works a treat. i.e. holding A makes the character do circles (donuts) to its relative left as expected. Holding W makes it roll forwards no matter it's world orientation.

When I try to apply the joystick it appears the direction of player travel becomes absolute. i.e. dragging joystick left makes the character go to the world minus X until it falls off the level map. The camera follows as it should but continuing to hold left on the joystick the character moves towards  the -X of the world. Not to its left or as I want - left relative to the camera like when using the keys.

The game is intended for mobile so the on screen joysticks are required. I got them from the Ecosystem - uGUI Joystick. I believe I have setup the Settings>Input correctly as per the attached jpg.

I have confirmed the 'Relative to' points to the scene object not the Heirarchy folder.

Sorry I am still learning.


Thank you for taking the time to read.
JG

--------------------
Other posts that have the same issue (some solved) but maybe I didn't apply the solution correctly.
 
http://hutonggames.com/playmakerforum/index.php?topic=6463.msg31579#msg31579

http://hutonggames.com/playmakerforum/index.php?topic=2841.msg12849#msg12849

http://hutonggames.com/playmakerforum/index.php?topic=7420.msg35862#msg35862