mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
14 lines
244 B
GDScript
14 lines
244 B
GDScript
extends Node3D
|
|
|
|
|
|
var increment = 0.0
|
|
|
|
|
|
func _process(delta):
|
|
position.x = sin(increment)
|
|
position.z = cos(increment)
|
|
# Avoid precision issues over time by rolling over every full turn.
|
|
rotation.y = fmod(increment, TAU)
|
|
|
|
increment += delta
|