|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Joystick question
Quote:
|
|
#2
|
||||
|
||||
|
Re: Joystick question
Take axis 1 and 2 (or just 2 if you're doing tank drive) and divide them by ((Axis 3 - 1)/2)
Basically make axis 3 from 0 to 1 and divide your other axes by it. If you're set on coercing it, you can do the same thing, then negate the value and put the negated value for the lower bound and the normal value for the upper bound. |
|
#3
|
|||||
|
|||||
|
Re: Joystick question
Quote:
Dividing by a factor ranging from 0-1 would scale up the joystick, making it faster. If you want to consider a more advanced scale function where you can move slowly for a select part of the joystick range then quickly ramp up to full speed read this white paper |
|
#4
|
|||
|
|||
|
Re: Joystick question
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|