make camera rotate listener
This commit is contained in:
@@ -11,3 +11,4 @@ _angle_degrees = Vector3(-50, -45, 0)
|
||||
|
||||
[node name="AudioListener3D" type="AudioListener3D" parent="."]
|
||||
top_level = true
|
||||
current = true
|
||||
|
||||
@@ -58,6 +58,7 @@ func _process_following(delta: float) -> void:
|
||||
|
||||
global_position = follow_position + transform.basis.z * _distance
|
||||
_listener.global_position = follow_position
|
||||
_listener.global_rotation = global_rotation
|
||||
|
||||
|
||||
func _connect_player_signals(player: Player) -> void:
|
||||
|
||||
Reference in New Issue
Block a user