How do can I make rotation Loop with verse?

FYI:
The animation_controller obtained from GetAnimationController was designed for much smoother keyframed animation.

if (AnimController := MyProp.GetAnimationController[]):
            AnimationKeyframes := array{
                keyframe_delta{DeltaLocation:=vector3{X:=0.0, Y:=-85.33, Z:=16.67}, DeltaRotation:=MakeRotation(Axis:=vector3{X:=0.0, Y:=0.0, Z:=1.0}, AngleRadians:=0.0), Time:=3.0},
                keyframe_delta{DeltaLocation:=vector3{X:=0.0, Y:=-85.33, Z:=16.67}, DeltaRotation:=MakeRotation(Axis:=vector3{X:=0.0, Y:=0.0, Z:=1.0}, AngleRadians:=0.0), Time:=3.0}}

            AnimController.SetAnimation(Keyframes:=AnimationKeyframes, ?Mode:=animation_mode.PingPong)
            AnimController.Play()

There’s currently a bug if all the keyframe Time variables aren’t the same, but that will be fixed in the future.

2 Likes