0 votes

Godot 3.0rc1-ish (self compiled).

Is there a quick and easy way to add the Editor's default 3D viewport controls to a game project?

I'm referring to the mouse's middle button's rotating and the right button's free looking with wasd controls. I didn't see any obvious properties on the viewport or camera objects. I don't need collision detection or anything fancy, just shooting for a simple model viewer.

Say I create a scene with a Spatial root, and CubeMesh MeshInstance and Camera children. I transform the Camera origin so the cube is in view, then run the project. A 3D scene appears but it doesn't accept any input.

Is the most efficient way then to write an input handling script that manipulates the camera?

Edit: Having researched this further, I still can't find anything quick-and-easy. I did find a couple camera control scripts for Godot 2 but they were in pretty rough shape. Ultimately what I'm looking for might be called Orbit Controls and there's an example for Three.js here.

in Engine by (26 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.