Godot Version
Godot v4.2.2 Stable Mono (C#)
Question
Hello! How can I rotate Node3D around on 360 degrees by looped tween? I write some code for tweening, but result not what I want. Cube rotates from Vector3(0f, 0f, 0f) to another Vector3(360f, 360f, 360f) using property “rotation_degrees” at TweenProperty method and antoher TweenProperty rotate back to Vector3(0f, 0f, 0f). But when the first tween is completed (360 degrees), the other tween does not rotate the cube further (around) and starts repeating the first tween only in reverse order.
At Unity I make this by LeanTween using rotateAround method — cube rotates non-stop around.
Code
Tween tween = CreateTween();
tween.SetEase(EaseType);
tween.SetTrans(TransitionType);
tween.SetLoops(10);
tween.TweenProperty(targetNode, "rotation_degrees", new Vector3(360f, 360f, 0f), Duration).SetDelay(Delay);
tween.TweenProperty(targetNode, "rotation_degrees", new Vector3(0f, 0f, 0f), Duration).SetDelay(Delay);