View previous topic :: View next topic |
Author |
Message |
Paul
Joined: 17 Apr 2004 Posts: 447 Location: Chicago
|
Posted: Sun Oct 10, 2004 7:58 pm Post subject: Mouse Control |
|
|
OK, I'm looking at adding mouse control now But I'm not quite sure how to do it. So read this, and let me know what you think. I have a few different ways in mind that this could work. I suppose I could just try them all out, but I'd rather see what you think, first
Right now, you go UP, DOWN, LEFT, or RIGHT at full angular acceleration according to whether your keys are pressed. Now with a mouse, a more appropriate method might be to specify angular velocity, otherwise if you had the mouse slightly off-center you would still find yourself eventually rotating at full speed, if you didn't correct. For example, specifying angular velocity, moving the mouse to the far left would indicate that you want to rotate left at full angular velocity. Or I could leave that as indicating you want full angular acceleration.
And that's just for the horizontal! For vertical, there's also the option of specifying a direct angle you would like to point at. For example, moving the mouse to the top of the screen could indicate that you would like to point upward at your maximum angle. Or alternatively, it could indicate you want maximum upward angular velocity, in which case you would have to return the mouse to neutral once you reached the desired angle. Or, it could also specify maximum upward angular acceleration, which would require you to actually move the mouse below neutral to slow you down to stop at the angle you want.
So let me know what you think, and I'll start coding! _________________ Differentiation is an integral part of calculus. |
|
Back to top » |
|
|
Paul
Joined: 17 Apr 2004 Posts: 447 Location: Chicago
|
Posted: Wed Oct 13, 2004 7:18 pm Post subject: |
|
|
Well, I've been experimenting, and it seems that using the mouse to indicate desired angular velocity in both the horizontal and vertical directions seems to work quite well both in terms of easy coding and controlling, so I think that's what I'll stick with. I just need to fix it up to work under windowed mode and add mouse button support now. Hopefully I can get that out by the end of the week. _________________ Differentiation is an integral part of calculus. |
|
Back to top » |
|
|
Mike73x
Joined: 12 Jul 2004 Posts: 71 Location: Perth, Australia
|
Posted: Thu Oct 14, 2004 11:24 am Post subject: |
|
|
Sounds great. Ships will still be limited to their max angular velocity, right? And is mouse control working for the 3rd person view too? |
|
Back to top » |
|
|
aplasticspork
Joined: 18 Apr 2004 Posts: 136 Location: Seattle, Wa
|
Posted: Thu Oct 14, 2004 11:11 pm Post subject: |
|
|
oooohh, mouse control, sounds like a party!!! anyway...i dont really have anything to contribute here as of now, other than to say that it sounds good _________________ This space left intentionally blank. |
|
Back to top » |
|
|
|
|