0
$\begingroup$

I've made a game where I rotate an object, (the entire scene actually, as everything is parented to one central empty,) using the arrow keys, but I'd rather like it to rotate with click-drag. At the same time, I'm using the left mouse button to select objects and move them around.

$\endgroup$
0
$\begingroup$

Generally it's nicer to rotate the camera around the object, but the logic brick setup is the same:

enter image description here

If you want to rotate the camera, put an empty at the rotation center, apply the logic to the empty, and parent the camera to the empty.

$\endgroup$
2
  • $\begingroup$ Outstanding. I almost got there on my own. I did the two mouse sensors, but on actuator I did simple movement. - Why is it nicer to move the camera? Fewer things moving more efficient? $\endgroup$ Jan 19 '17 at 21:45
  • $\begingroup$ I just think it's more intuitive for the user. No technical reason. $\endgroup$
    – sdfgeoff
    Jan 19 '17 at 22:49

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.