set bezier control points in the middle

This commit is contained in:
yugecin 2016-12-25 21:10:58 +01:00
parent 3b91247d12
commit 1c2fac02be

View File

@ -29,8 +29,8 @@ public class CubicStoryboardMover extends StoryboardMultipointMover {
@Override @Override
public void setInitialStart(Vec2f start) { public void setInitialStart(Vec2f start) {
super.setInitialStart(start); super.setInitialStart(start);
super.addPoint(new Vec2f((start.x + end.x) / 3, (start.y + end.y) / 3)); super.addPoint(new Vec2f((start.x + end.x) / 2, (start.y + end.y) / 2));
super.addPoint(new Vec2f((start.x + end.x) * 2 / 3, (start.y + end.y) * 2 / 3)); super.addPoint(new Vec2f((start.x + end.x) / 2, (start.y + end.y) / 2));
} }
@Override @Override