-
Notifications
You must be signed in to change notification settings - Fork 124
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
feat: new Math triggers (Clamp, Sign, Atan2, Rad, Deg, Lerp) and char triggers (Angle, Scale, OffSet, Alpha) #1275
Conversation
some changes before the PR can be merged:
|
This branch has conflicts that must be resolved |
Before fix:
After fix:
Char link
New Math triggers:
Clamp(x,min,max) (float)
Return a value clamped to an inclusive range of two specified numbers
Sign(value) (int)
Returns the sign of a real number. If value < 0 return -1. If value 0 return 0. if value > 0 return 1.
Atan2(x,y) (float)
Returns the arc tangent of the two numbers x and y.
Rad(value) (float)
Converts degress to radians.
Deg(value) (float)
Converts radians to degress.
Lerp(a,b,amount) (float)
Linear interpolation between two values.
New Char triggers:
Gets the value of the player's angle.
Example: "trigger1 = angle < 90"
Gets the value of the player's scale.
Example: "trigger1 = scale x< 2 || scale y > 2"
Gets the value of the player's offset.
Example: "trigger1 = offset x > 20 || offset y > 15"
Gets the value of the player's alpha.
Example: "trigger1 = alpha source > 128 || alpha dest < 64"