Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Simple Free-Look Camera for Godot 4 in C#

An asset by D0ct0rDave
The page banner background of a mountain and forest
Simple Free-Look Camera for Godot 4 in C# hero image

Quick Information

0 ratings
Simple Free-Look Camera for Godot 4 in C# icon image
D0ct0rDave
Simple Free-Look Camera for Godot 4 in C#

A C# implementation of a simple 3D free-look camera for Godot 4.0 that mimics some of the functionality of the editor's camera for in-game use.Ported from Richardhyy's Godot 4.0 GD version (https://github.com/richardhyy/simple-free-look-camera-4), who ported from Adamviola's Godot 3.2 GD version https://github.com/adamviola/simple-free-look-camera).* Use **W** and **S** to move forward and backward.* Use **A** and **D** to move left and right.* Use **Q** and **E** to move up and down.* Roll the **scroll wheel** to increase and decrease movement speed.* Press **shift** to move faster, and hold **alt** to move slower.* Hold down the **right mouse button** to rotate the camera.There's a slider in the editor to control mouse sensitivity.Attach `FreeLookCameraBase.cs` or `FreeLookCamera.cs` to your Camera3D node. That's it!(More information at the README.md file)

Supported Engine Version
4.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
11 months ago
Git URL
Issue URL

Simple Free-Look Camera

A C# implementation of the SimpleFreeLookCamera found in the AssetStore:

Original description:

A simple 3D 100-line free-look camera for Godot 4.0 that mimics the functionality of the editor's camera for in-game use.

Ported from Richardhyy's Godot 4.0 version, who ported from Adamviola's Godot 3.2 version.

Why should you use the C# version?

Installation

Attach FreeLookCameraBase.cs or FreeLookCamera.cs to your Camera3D node. That's it!

  • Attaching FreeLookCameraBase behaves exactly like the original GD script version.

  • If you attach FreeLookCamera.cs instead, you'll be able to switch from your current game camera's to the free one, just setting the Enabled property of it. For instance by handling an input action from your script:

...
if (Input.IsActionJustReleased("ToggleFreeCameraAction"))
{
    _freeCameraNode.Enabled = !_freeCameraNode.Enabled;
}
...

Usage

Use W and S to move forward and backward.

Use A and D to move left and right.

Use Q and E to move up and down.

Roll the scroll wheel to increase and decrease movement speed.

Press shift to move faster, and hold alt to move slower.

Hold down the right mouse button to rotate the camera. There's a slider in the editor to control mouse sensitivity.

License

MIT.

A C# implementation of a simple 3D free-look camera for Godot 4.0 that mimics some of the functionality of the editor's camera for in-game use.

Ported from Richardhyy's Godot 4.0 GD version (https://github.com/richardhyy/simple-free-look-camera-4), who ported from Adamviola's Godot 3.2 GD version https://github.com/adamviola/simple-free-look-camera).

* Use **W** and **S** to move forward and backward.
* Use **A** and **D** to move left and right.
* Use **Q** and **E** to move up and down.
* Roll the **scroll wheel** to increase and decrease movement speed.
* Press **shift** to move faster, and hold **alt** to move slower.
* Hold down the **right mouse button** to rotate the camera.

There's a slider in the editor to control mouse sensitivity.

Attach `FreeLookCameraBase.cs` or `FreeLookCamera.cs` to your Camera3D node. That's it!

(More information at the README.md file)

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Simple Free-Look Camera for Godot 4 in C# icon image
D0ct0rDave
Simple Free-Look Camera for Godot 4 in C#

A C# implementation of a simple 3D free-look camera for Godot 4.0 that mimics some of the functionality of the editor's camera for in-game use.Ported from Richardhyy's Godot 4.0 GD version (https://github.com/richardhyy/simple-free-look-camera-4), who ported from Adamviola's Godot 3.2 GD version https://github.com/adamviola/simple-free-look-camera).* Use **W** and **S** to move forward and backward.* Use **A** and **D** to move left and right.* Use **Q** and **E** to move up and down.* Roll the **scroll wheel** to increase and decrease movement speed.* Press **shift** to move faster, and hold **alt** to move slower.* Hold down the **right mouse button** to rotate the camera.There's a slider in the editor to control mouse sensitivity.Attach `FreeLookCameraBase.cs` or `FreeLookCamera.cs` to your Camera3D node. That's it!(More information at the README.md file)

Supported Engine Version
4.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
11 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers