TweenManager
by
Braxnet
| Summary | |
|---|---|
| Description |
a tweening system very similar to godot. do things like: var tween = TweenManager.CreateTween(); tween.AddRotation( TreeModel, Rotation.FromRoll( 5 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticOut ); tween.AddRotation( TreeModel, Rotation.FromRoll( -5 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticInOut ); tween.AddRotation( TreeModel, Rotation.FromRoll( 5 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticInOut ); tween.AddRotation( TreeModel, Rotation.FromRoll( 0 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticOut ); await tween.Wait(); Log.Info("Done");a tweening system very similar to godot. do things like:
var tween = TweenManager.CreateTween();
tween.AddRotation( TreeModel, Rotation.FromRoll( 5 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticOut );
tween.AddRotation( TreeModel, Rotation.FromRoll( -5 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticInOut );
tween.AddRotation( TreeModel, Rotation.FromRoll( 5 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticInOut );
tween.AddRotation( TreeModel, Rotation.FromRoll( 0 ), 0.2f ).SetEasing( Sandbox.Utility.Easing.QuadraticOut );
await tween.Wait();
Log.Info("Done");
|
| Votes | 👍4 👎0 ❤️3 |
| Error Rate | 0% |
| Data | {} |
| Version | Created | Size (modified) | Files | Changes |
|---|---|---|---|---|
| 88504 | 13.7 KB | 7 +7 | Changes on 2025-02-17 |
Loading history…