TweenManager
| 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 | {} |