Code/SbTween/Examples/SbeTRS.cs

A small example component for the SbTween library. OnStart it starts a continuous shake-rotation tween on the entity, duration 0.6s with strength 5 and infinite YoYo loops.

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 );
	}
}