Lock cursor onscreen

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RpgGOD
:warning: Old Version Published before Godot 3 was released.

Hi,
How do I lock the cursor on center, to make FPS like camera?

I read somewhere Godot has no inbuilt terrain system! If so will Godot add terrain in future?

Thanks

I read somewhere Godot has no inbuilt terrain system! If so will Godot add terrain in future?

Terrain system is planned for Godot 3.0 or 3.1.

Calinou | 2016-03-18 07:36

There is a plugin for terrain.
GitHub - Zylann/godot_heightmap_plugin: HeightMap terrain for Godot implemented in GDScript

MmTtDeveloper | 2020-02-02 18:06

:bust_in_silhouette: Reply From: volzhs

I think this is what you need.

Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)

Ok got it, its working, thanks.

RpgGOD | 2016-03-18 10:33

A more updated version would be this:

Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)

MmTtDeveloper | 2020-02-02 19:05

:bust_in_silhouette: Reply From: theMX89

so, in your scene, right next to 2d and 3d theres an assetlib.
click on it and search for terrain ,then download Hterrain, and add
an node calld hterrain to your spatial node.

(or just watch this really good vid:https://www.youtube.com/watch?v=k_ISq6JyVSs, its also funn)