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.
1 Answer
$\begingroup$
$\endgroup$
2
Generally it's nicer to rotate the camera around the object, but the logic brick setup is the same:
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.
-
$\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$– sdfgeoffCommented Jan 19, 2017 at 22:49