playMaker

Author Topic: Why sensivity doesn't work with joystick ?  (Read 97 times)

ElProfessor595

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Why sensivity doesn't work with joystick ?
« on: March 26, 2020, 11:27:18 AM »
Hello guys ! I actually work on a Sonic-style fangame. To make the character's acceleration, I use input's sensivity and gravity settings, whith low values. And with the keyboard, it's work pretty well. But when I use a controller, Unity doesn't look like to apply sensivity ad gravity settings. Can someone explain me why it doesn't work, and possibely how to solve this problem, please ?
Thanks for all yours answers :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4804
    • View Profile
    • jinxtergames
Re: Why sensivity doesn't work with joystick ?
« Reply #1 on: March 26, 2020, 01:19:26 PM »
Hi.
The old input system is very crappy, i do not know about the new input system.
i can't really tell you why it does not work, but i had a lot off issues with it as well.

Rewired is (so far) the best solution for controllers (in my opinion)
I have been using Rewired asset a long time and on several projects and it the beginning it might look a bit complex but it works very good.

ElProfessor595

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: Why sensivity doesn't work with joystick ?
« Reply #2 on: March 27, 2020, 08:07:27 AM »
Thanks djaydino for your really quick answer, but I saw on the internet many tutorials of momentum, so can't we do it with playmaker ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4804
    • View Profile
    • jinxtergames
Re: Why sensivity doesn't work with joystick ?
« Reply #3 on: March 27, 2020, 01:01:12 PM »
Hi.
Sure you can. but using  sensitivity and gravity is not the way to go i think.

its better to set up a system to do this.

You could use for example 'Axis Event'
and for example on 'right event' go to next state.

In that state use a 'float interpolate' or 'curve float' and a set velocity
so that you gradually increase the velocity.

ElProfessor595

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: Why sensivity doesn't work with joystick ?
« Reply #4 on: March 29, 2020, 07:43:53 AM »
Thank you, I tried your method, and it looks good, but I have (again) a problem : I use Get Axis for the two axis, I amplify the two values got when the character run, set Vector3 value with the two new values, and finally, I set it at character controller (sorry for this very long text). It works, but when I move the camera, the character move in an unique direction,whatever the camera placement, only move on that axis.
I want to use Get Axis Vector action, but i don't know how to do it. If you understood what I said, do you know what could I do ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4804
    • View Profile
    • jinxtergames
Re: Why sensivity doesn't work with joystick ?
« Reply #5 on: March 29, 2020, 09:42:30 AM »
HI.
Oh you are using the character controller?

it is probably interfering with the velocity.
character controller is ok for some quick prototyping else its better to build your own system.

Just to be clear what type you are building : 2D side scroller / 3d 3rd person / 3d 1st person / someting else.