I am updating the fps camera to make it feel more natural (the current fpscamera aint really an fps camera but a spectator camera)
but i have bumped into a problem. I just cant seem to find the piece of code that tells the camera to turn left when the cursor is moving horizontally.
I want to change the amount it moves because when you move 1 unit to the left you can see a it jump to the left to many units wich causes the camera to jitter when rotating
any advice?
Fps camera node
-
- Posts: 271
- Joined: Sat Aug 23, 2003 5:52 pm
- Location: Hurricane Central, Florida
I think what you're looking for is this?... If you just go into the animate function that Niko mentioned and find this code:
You can make it much more precise and less "jumpy" by changing the precision to 0.4999 and 0.5001. Thats what I use and it is butter smooth...
Code: Select all
if (cursorpos.X < 0.49f || cursorpos.X > 0.51f ||
cursorpos.Y < 0.49f || cursorpos.Y > 0.51f){