The Godot Barn
Sign in
Sign in
Home
News & updates
Explore
Tutorials
Articles
Snippets
Shaders
Submit content
Sign in to submit content
Give or get help
Questions
Conversations
Coming soon!
first-person
Recent snippets tagged «first-person»
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
Filters
Contents containing
Language
GDScript
C#
Both
License
All licenses
CC-BY
CC0
GPLv3
AGPLv3
MIT
Unlicense
Godot version(s)
All versions
Godot 3.x
Godot 4.x
Godot 4.0
Godot 4.1
Godot 4.2
Godot 4.3
Godot 4.4
Reset filters
Apply filters
Popular tags recently
functions
first-person
bus
autoload
ui
log
mesh
primitive
debug
fps
frames
camera3d
controller
crystal
mouse
Please wait ...
Okay
Okay
No
Yes
Okay