This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends CharacterBody3D | |
| const SPEED = 5.0 | |
| const JUMP_VELOCITY = 4.5 | |
| # Get the gravity from the project settings to be synced with RigidDynamicBody nodes. | |
| var gravity: float = ProjectSettings.get_setting("physics/3d/default_gravity") | |
| @onready var neck := $Neck | |
| @onready var camera := $Neck/Camera3d |