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 / How can I slow down the mouse movement

Author
Message
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 9th Apr 2006 21:01
The camera move to fast when I move the mouse.
How can I let it move slower?
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 9th Apr 2006 21:30
No code include
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 9th Apr 2006 21:57
Multiply the speed the camera moves at by some value, usually .1 or .01 works.

so;



Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 9th Apr 2006 22:17
When I put that code in the camera don't rotate anymore.
The camera jumps to his old position and stands right there.
There is no difference between .1 or .01, same problem.
Something wrong with the code above??

Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 9th Apr 2006 23:46
What your code was doing was making the camera angle value one hundredth of what it was the last loop. That means that if the camera angle x was 100, then without moving your mouse it would be 1 the next loop. The angle the next loop would then be .001. That is why it would always return to the angle of 0,0,0.



Insanity is just a state of mind
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 10th Apr 2006 00:19
Thanks Daemon. You solved the problem...
Ruccus: Thanks for your reaction...

Lovely forum.
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 10th Apr 2006 02:14 Edited at: 10th Apr 2006 02:14
Glad you got it sorted out, sorry I didnt look at the entire code I just jumped to the conclusion that it was similar to the usual camera rotation code, especially since it looked like it at first glance. Anyways this would've worked:



Login to post a reply

Server time is: 2024-09-24 19:21:20
Your offset time is: 2024-09-24 19:21:20