fix quadratic bezier aggressiveness
This commit is contained in:
parent
366eda0310
commit
347705aadf
|
@ -53,7 +53,7 @@ public class QuadraticBezierMover extends Mover {
|
||||||
double dist = Utils.distance(startX, startY, endX, endY);
|
double dist = Utils.distance(startX, startY, endX, endY);
|
||||||
p.x = (int) (startX + Math.cos(startAngle) * prevspeed);
|
p.x = (int) (startX + Math.cos(startAngle) * prevspeed);
|
||||||
p.y = (int) (startY + Math.sin(startAngle) * prevspeed);
|
p.y = (int) (startY + Math.sin(startAngle) * prevspeed);
|
||||||
prevspeed = (dist / totalTime) * Options.getQuadBezSliderAggressiveness();
|
prevspeed = (dist / totalTime) * Options.getQuadBezAggressiveness();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user