Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (757) Games in Android Showcase (229) games submitted by our members Games in WIP (844) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Decreasing the sensitivity  (Read 2908 times) 0 Members and 1 Guest are viewing this topic.
AppleWilliam

Senior Newbie

 « Posted 2010-08-04 19:34:25 »

The xbox controller is extremlly sensitive.  I was wondering how I should go about decreasing the sensitivity.  I was thinking about dividing the poll data by 2.  Would that work or is there an easier way.
Riven

« JGO Overlord »

Medals: 1340
Projects: 4
Exp: 16 years

 « Reply #1 - Posted 2010-08-04 19:37:50 »

maybe...

Math.sqrt(value)

or...

Math.pow(value, 1.0 / factor)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
AppleWilliam

Senior Newbie

 « Reply #2 - Posted 2010-08-04 19:50:47 »

maybe...

Math.sqrt(value)

or...

Math.pow(value, 1.0 / factor)
I tried that. something like this:
 1  2  3  4 `   public void theta1(double x, double y){      y = Math.pow(y,1/2);      x = Math.pow(x,1/2);      setTheta(Math.atan2(y, x));`

My Y and X are dependant on each other.  Since they are in a ratio, theta will always be the same if x and y are being modified by the same factor
Riven

« JGO Overlord »

Medals: 1340
Projects: 4
Exp: 16 years

 « Reply #3 - Posted 2010-08-04 19:56:25 »

Obviously, you have to 'adjust' the vector length, not the input values.

Besides that: 1/2==0 so your code doesn't work.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Nate

« JGO Bitwise Duke »

Medals: 167
Projects: 4
Exp: 14 years

Esoteric Software

 « Reply #4 - Posted 2010-08-05 05:35:25 »

Well, often lots of "practice" helps. Can't help you with the vector length though.

Roquen

JGO Kernel

Medals: 517

 « Reply #5 - Posted 2010-08-05 06:22:49 »

If you mean 'noisy' then you could start with a low pass filter:

x = f(x0+x1)-x0

where 'x0' is the previous filtered sample, 'x1' is the new sample and 'f' is the weight of the filter, on (0,1).
Pages: [1]
 ignore  |  Print

 EgonOlsen (45 views) 2018-06-10 19:43:48 EgonOlsen (25 views) 2018-06-10 19:43:44 EgonOlsen (47 views) 2018-06-10 19:43:20 DesertCoockie (202 views) 2018-05-13 18:23:11 nelsongames (127 views) 2018-04-24 18:15:36 nelsongames (126 views) 2018-04-24 18:14:32 ivj94 (867 views) 2018-03-24 14:47:39 ivj94 (128 views) 2018-03-24 14:46:31 ivj94 (771 views) 2018-03-24 14:43:53 Solater (143 views) 2018-03-17 05:04:08
 Java Gaming Resourcesby philfrei2017-12-05 19:38:37Java Gaming Resourcesby philfrei2017-12-05 19:37:39Java Gaming Resourcesby philfrei2017-12-05 19:36:10Java Gaming Resourcesby philfrei2017-12-05 19:33:10List of Learning Resourcesby elect2017-03-13 14:05:44List of Learning Resourcesby elect2017-03-13 14:04:45SF/X Librariesby philfrei2017-03-02 08:45:19SF/X Librariesby philfrei2017-03-02 08:44:05
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org