So I have recently been learning how to do stuff with the mouse in Python. I have written a mouselook script that works great except for one thing. I don’t know how to limit the rotation of the camera. So you can move the mouse up and the camera will rotate in a full circle (not good for a fps game). Can anyone tell me how? I’m thinking the easiest way to do it would be with the constraint actuator, but I don’t know how to use that.
im having the same problem
Use an IPO for the vertical rotation, and have the script set a property that the IPO actuator reads from.
I know about using IPO’s for this kind of thing, but I would rather not.
why not use IPOs?
I want to make the mouse sensitivity to be customizable and if I use an IPO, that’s not going to work
just divide the property value change by the sensitivity, not a big deal
You could also use .setOrientation()
Here is a demo .blend:
or multiply, it is a great setup witch I’ve used a lot. I’d recommend it.