Navagating with mouse click and drag.

I’m wanting to be able to move around the game engine with the mouse by clicking in the viewing window and dragging to moving up and down, side to side. Much like the way you can in the Blender’s modeling interface. Does anyone know if this can be done with the logic blocks or if i will take an additional piece of scripting?

I made a video tutorial that explains mouselook basics:

Hope that helps.

Heres a free rotating camera around a moving cube.

Most of these types of setups are just a modified mouselook script, so studying them as goran suggested is a good start. I parent my camera object to a seeker that always seeks my player(not facing). Then some mouselook stuff…

Click on the ground to walk
Hold right button and move mouse to rotate camera
wheel zoom

Attachments

005…mousecamstuff…blend (363 KB)

Thanks superflip and Goran for responding to my problem. I will study the code and see if i can make it do what i need. really what i am trying to do is have the camera fixed on one object where the camera must be able to move around the object in all directions always keeping the object fixed in the center of the players view port. I have done this with keyboard keys using a empty centered with the object and the camera fixed to the empty. it is able to move all around the object using arrow keys and zoom in and out using the mouse wheel. I’ll just have to find out how to write the code to use a mouse drag solution in place of the arrow keys. i will see if i can upload a blend file so you all can see what i have so far. Thanks.

i downloaded your MouseOrbiterMoreExamples.blend file and when i hit “P” i don’t see anything happening. What is the file meant to do when in Play mode?