1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 11:32:42 +01:00
ScreenPlay/Content/wallpaper_godot_fjord/Path3D.gd
Elias Steurer a596ad6337 Add args parsing
Add access to ScreenPlay object to the
fjord example
2023-10-05 13:57:25 +02:00

18 lines
423 B
GDScript

extends Path3D
# Reference to the PathFollow node
@onready var path_follow = $PathFollow3D
@onready var path_follow =
# Speed of the movement along the path
var speed = 0.8
func _process(delta):
# Update the offset to move the object along the path
path_follow.progress += speed * delta
# Loop back to the start if we've reached the end of the path
if path_follow.progress >= 18.81:
path_follow.progress = 0.0