LWJGL Rotationproblem

Started by Tokolosh, September 30, 2011, 14:56:41

Previous topic - Next topic

Tokolosh

Hello, i want to make a First Person shooter in 3D. So, i can move, can look around and i have a gravity and a nice gui. That´s great. But my Problem is, i can make a salto. I don´t want this. I don´t want moving like a spaceship. I want to set a MaxValue and a MinValue for my Mouse dy. How should i implement this????? Is there a good example from a FPS. Please help.

Chuck

Quote from: Tokolosh on September 30, 2011, 14:56:41
i can make a salto.

I think that didn't translate into English quite right.  What does "salto" mean? 

When you use Mouse.getDx() and Mouse.getDy(), you can check whether those values are between min and max and set your new dx/dy values either to 0 if it's under min (dead zone) or clamp it to max (damping).

A dead zone for a mouse is unusual though, and for joysticks you set a dead zone before you even read the value.  So you might want to use just a max value.


Tokolosh

Sorry for my bad English  ;D

To my Problem, the Mouse.getDX() or Mouse.getDY() value is to short for a maximum or a minimum.