You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
-fix bug in cache for atlas import/export
-fix some menus -fixed bug in out transition curves -detect and remove file:/// in collada -remove multiscript for now -remove dependencies on mouse in OS, moved to Input -avoid fscache from screwing up (fix might make it slower, but it works) -funcref was missing, it's there now
This commit is contained in:
@@ -220,9 +220,16 @@ int Math::decimals(double p_step) {
|
||||
|
||||
double Math::ease(double p_x, double p_c) {
|
||||
|
||||
if (p_x<0)
|
||||
p_x=0;
|
||||
else if (p_x>1.0)
|
||||
p_x=1.0;
|
||||
if (p_c>0) {
|
||||
|
||||
return Math::pow(p_x,p_c);
|
||||
if (p_c<1.0) {
|
||||
return 1.0-Math::pow(1.0-p_x,1.0/p_c);
|
||||
} else {
|
||||
return Math::pow(p_x,p_c);
|
||||
}
|
||||
} else if (p_c<0) {
|
||||
//inout ease
|
||||
|
||||
|
||||
Reference in New Issue
Block a user