Is there a way I could make the mouse look actuator use translation values instead of rotation?

The idea is to move the camera left and right instead of just rotating it.


You can probably edit the python script found here


follow the tutorial http://www.tutorialsforblender3d.com/Game_Engine/MouseLook/MouseLook_First_3.html

just change this part:

# set the values
act_LeftRight.dRot = [ 0.0, 0.0, leftRight]
act_LeftRight.useLocalDRot = False  

act_UpDown.dRot = [ upDown, 0.0, 0.0]
act_UpDown.useLocalDRot = True

to :

# set the values
act_LeftRight.dLoc = [ 0.0, 0.0, leftRight]
act_LeftRight.useLocalDLoc = False  

act_UpDown.dLoc = [ upDown, 0.0, 0.0]
act_UpDown.useLocalDLoc = True

Hope it works.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.