little things post jam
This commit is contained in:
parent
a185751e5a
commit
295245fe4d
5 changed files with 28 additions and 5 deletions
9
entities/camera/camera_effects.gd
Normal file
9
entities/camera/camera_effects.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
extends Node
|
||||
|
||||
@export var car: Car
|
||||
@export var fov_min := 70.0
|
||||
@export var speed_fov_effect := 0.5
|
||||
@onready var camera_3d: Camera3D = $".."
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
camera_3d.fov = 70 + car.linear_velocity.length() * speed_fov_effect
|
||||
Loading…
Add table
Add a link
Reference in a new issue