Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Whole Numbers to decimal numbers? Please help!

Author
Message
Gibbon
19
Years of Service
User Offline
Joined: 12th Mar 2005
Location:
Posted: 12th Mar 2005 07:14
Ok, what i mean is, i have raw joystick values comming in, there big and twitchy, so i have devided them by about 100 which has decreased them to about +/- 30 and smoothed them out nice! BUT, say i want to move a cube up when i push forward,

joyx is the smoothed x value

move object 1,joyx

joyx only needs to get to 1 and the cube goes shooting off up!! lol!

How do i get joyx to be like 0.0#??

Or am i going about this the wrong way?
Thanks Guys
Andy
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 12th Mar 2005 09:33 Edited at: 12th Mar 2005 09:35
Name it joyx#

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone

Login to post a reply

Server time is: 2024-11-13 20:01:03
Your offset time is: 2024-11-13 20:01:03