/godot-third-person-camera

A Third Person Camera for Godot Engine

Primary LanguageGDScriptMIT LicenseMIT

Godot Third Person Camera

Godot Engine logo

A Third Person Camera for Godot4.

Status GitHub Issues GitHub Pull Requests License

📝 Table of Contents

🏁 About

This is a ready-to-use third person camera for your 3D games. It is also highly configurable and its configurability allows you to use it in multiple ways :

  • Dynamic Follow
  • Fixed Perspective
  • Shoulder View
  • Over-The-Shoulder View

🏁 Documentation

How to use ?

  1. Add the scene ThirdPersonCamera.tscn located at addons\third-person-camera\third_person_camera as child for you character node.
  2. Twerk the properties to fit you need.

Third Person Camera Public Methods

get_camera()

Return the Camera3D

get_front_direction()

Return the direction forward the camera view

get_back_direction()

Return the direction backward the camera view

Third Person Camera Properties

Distance From Pivot

  • Property name : distance_from_pivot
  • Type : float
  • Exported : Yes

Distance from pivot demo

Pivot Offset

  • Property name : pivot_offset
  • Type : Vector2
  • Exported : Yes

Pivot offset demo

Dive angle

  • Property : initial_dive_angle_deg
  • Type : float
  • Exported : Yes
  • Range : -90.0 .. 90.0

Dive angle demo

Tilt upper limit

  • Property : tilt_upper_limit_deg
  • Type : float
  • Exported : Yes
  • Range : -90.0 .. 90.0

Tilt lower limit

  • Property : tilt_lower_limit_deg
  • Type : float
  • Exported : Yes
  • Range : -90.0 .. 90.0

Tilt sensitiveness

  • Property : tilt_sensitiveness
  • Type : float
  • Exported : Yes
  • Range : 1.0 .. 100.0

Tilt sensitiveness demo

Horizontal rotation sensitiveness

  • Property : horizontal_rotation_sensitiveness
  • Type : float
  • Exported : Yes
  • Range : 10.0 .. 700.0

Horizontal rotation sensitiveness demo

Current

  • Property : current
  • Type : bool
  • Exported : Yes

Camera current demo

Mouse Follow

  • Property : mouse_follow
  • Type : bool
  • Exported : Yes

Mouse follow demo

Mouse X sensitiveness

  • Property : mouse_x_sensitiveness
  • Type : float
  • Exported : Yes
  • Range : 0.0 .. 5.0

Mouse Y sensitiveness

  • Property : mouse_x_sensitiveness
  • Type : float
  • Exported : Yes
  • Range : 0.0 .. 2.0

Camera tilt

  • Property : camera_tilt_deg
  • Type : float
  • Exported : No
  • Range : tilt_lower_limit_deg .. tilt_upper_limit_deg

Camera horizontal rotation

  • Property : camera_horizontal_rotation_deg
  • Type : float
  • Exported : No

Camera3D Properties

All Godot Camera3D Properties are available. You can access to camera node by get_camera() method. Also, it exported variables are available in the editor.

Camera3D properties image