nomadro/apps/minigame-godot/scripts/smooth_camera.gd
Eric 58a845db32 Add WeChat minigame triple-engine scaffold with Godot Chiang Mai plaza SoT.
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>
2026-11-06 20:17:14 +08:00

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))