mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
feat(feedback): add responsive camera and impacts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user