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$

1 Answer 1

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$ Commented Jan 19, 2017 at 21:45
  • $\begingroup$ I just think it's more intuitive for the user. No technical reason. $\endgroup$
    – sdfgeoff
    Commented Jan 19, 2017 at 22:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .