The Godot Barn
Sign in
Sign in
Home
News & updates
Explore
Articles
Snippets
Shaders
Themes
Submit content
Sign in to submit content
Give or get help
Tutorials
Questions
Conversations
Coming soon!
first-person
Tagged snippets
Browse snippets
Explore
0
0
#headbob and armory bob variables const BOB_FREQ: float = 1.2 const BOB_AMP: float = 0.05 var t_bob: float = 0.0 if velocity.length() > 0: if is_on_floor(): t_bob += delta * velocity.length() * headbob_multiplier
First-person headbobbing
darkcanopy
Dec 06th, 2024
Headbobbing in first person in a horizontal figure 8
Godot
4.x
GDScript
first-person
0
0
#in variables before functions @export var camera : Node3D var current_pitch:float = 0.0 var current_yaw:float = 0.0 @export var common_mouse_sensitivity:float = 0.09 var mouse_sens_x:float = common_mouse_sensitivity var mouse_sens_y:float = common_mouse_sensitivity
First-person camera controls
darkcanopy
Dec 06th, 2024
first person FPS camera controls using Basis with mouse sensitivity split into X and Y axis
Godot
4.x
GDScript
first-person
Tagged shaders
Browse shaders
Explore
There are no recent shaders with this tag.
Tagged articles
Browse articles
Explore
There are no recent articles with this tag.
Tagged questions
Popular content tags
functions
Colors
first-person
autoload
UI
Theme
mesh
primitive
camera3d
controller
GodotSteam
steamworks
SteamĀ®
Procedural generation
prerelease
Please wait ...
Okay
Okay
No
Yes
Okay