-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easings float operator #487
base: dev
Are you sure you want to change the base?
Conversation
An operator similar to [Spring] and [Damp], we can select the easing function and set the duration. Easing functions source: https://easings.net/
love this and long overdue 🙏 - i'd definitely want the type selection to be Enum-based though It might also make things simpler on the user end to remove the Strength slot if we can live without it? since it only affects a couple of them, it would confuse me |
Thanks a lot for your feedback. |
oh, i didnt mean separate the easing functions into a separate file! But I would happily take that change bc these functions could be useful for the editor >:) or the core math library! hell, the whole functiion what I meant was to make an enum instead of a Seems like you're already in the process of doing so, just wanted to clarify bc i feel bad if I encouraged you to do more work than you needed to 😅 I also say this not knowing how well the editor supports just adding an enum slot like that though... 🤷♂️ |
I think the way I did it is okay. I have the enum and functions in [EasingFunctions.cs] So I can use them in any operator like Easings or EasingsVec3. Creating EasingsVec2 will be straight forward. About
Right now the only way to see the dropdown menu with the enums in the parameters window of an operator is to add , Thus, duplicating such operator within the editor will give a int and won't show a dropdown menu. |
Instead of having a dropdown list with 30 easing functions. (pretty hard to read). I've added a enum to select between In, Out and InOut. Then it reduces the list to 10. Its way more readable.
An operator similar to [Spring] and [Damp]
We can select the easing function and set the duration.
This operator creates transitions between changing input values, perfect for animating any step change.
Note: The input value should evolve in steps (e.g., sudden changes) to fully utilize the easing effect.
Easing functions source: https://easings.net/