Godot Third Person Camera
A Third Person Camera for Godot4.
📝 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 ?
- Add the scene
ThirdPersonCamera.tscn
located ataddons\third-person-camera\third_person_camera
as child for you character node. - 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
Pivot Offset
- Property name :
pivot_offset
- Type :
Vector2
- Exported : Yes
Dive angle
- Property :
initial_dive_angle_deg
- Type :
float
- Exported : Yes
- Range : -90.0 .. 90.0
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
Horizontal rotation sensitiveness
- Property :
horizontal_rotation_sensitiveness
- Type :
float
- Exported : Yes
- Range : 10.0 .. 700.0
Current
- Property :
current
- Type :
bool
- Exported : Yes
Mouse Follow
- Property :
mouse_follow
- Type :
bool
- Exported : Yes
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.