feat(feedback): add responsive camera and impacts

This commit is contained in:
Josh Creek
2026-08-07 22:37:49 +01:00
parent 78ef0cb1f8
commit 28eb45338a
6 changed files with 160 additions and 5 deletions
+8
View File
@@ -326,6 +326,14 @@ func _update_movement_vfx() -> void:
_engine_cores[i].scale = Vector3.ONE * (0.8 + thrust * 0.3 + (0.25 if turbo else 0.0))
func get_speed_ratio() -> float:
return clampf(linear_velocity.length() / maxf(max_speed, 0.001), 0.0, 1.0)
func is_turbo_active() -> bool:
return _current_action.turbo and _current_action.thrust.z > 0.05
func _on_body_entered(body: Node) -> void:
if not body is Ball:
return