Enable physics interpolation in all 3D demos (#1074)

This makes use of the new built-in 3D physics interpolation
added in Godot 4.4.
This commit is contained in:
Hugo Locurcio
2025-04-15 16:54:41 +02:00
committed by GitHub
parent a88ca219b8
commit 819d201cc4
25 changed files with 137 additions and 121 deletions

View File

@@ -40,6 +40,10 @@ func _physics_process(delta: float) -> void:
# Player hit the reset button or fell off the map.
position = initial_position
velocity = Vector3.ZERO
# We teleported the player on the lines above. Reset interpolation
# to prevent it from interpolating from the old player position
# to the new position.
reset_physics_interpolation()
# Update coin count and its "parallax" copies.
# This gives text a pseudo-3D appearance while still using Label3D instead of the more limited TextMesh.