mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 11:32:42 +01:00
a596ad6337
Add access to ScreenPlay object to the fjord example
18 lines
423 B
GDScript
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
|