Unity and Cocos stay as parallel schemes; apps/minigame ships the Godot 4.7 WeChat pack for DevTools. Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
251 B
GDScript
10 lines
251 B
GDScript
extends Camera3D
|
|
|
|
@export var distance := 5.4
|
|
@export var height := 1.55
|
|
@export var lag := 7.5
|
|
|
|
func _process(delta: float) -> void:
|
|
var target_local := Vector3(0.0, height, distance)
|
|
position = position.lerp(target_local, 1.0 - exp(-lag * delta))
|