namespace PlanetMeat;
[Group( "Planet Meat - Effects" ), Title( "Random Starting Rotation" ), Icon( "crop_rotate" )]
public sealed class RandomStartingRotation : Component
{
[Property] private Angles Range { get; set; } = new( 0.0f, 360.0f, 0.0f );
protected override void OnStart()
{
base.OnStart();
LocalRotation = LocalRotation.LerpTo( Range, Game.Random.Float() );
}
}