SbTween/Examples/SbeTRS.cs

A small example component that starts a continuous shake rotation tween on the entity when the component starts. It calls TweenShakeRotation with duration and magnitude, then sets infinite YoYo looping.

using Sandbox;
using SbTween;

namespace SbTween.Examples;

public sealed class SbeTRS : Component
{
	protected override void OnStart()
	{
		this.TweenShakeRotation( 0.6f, 5 ).SetLoops( -1, LoopType.YoYo );
	}
}