From 1c2fac02be50d7081e211276661aba165446163d Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 25 Dec 2016 21:10:58 +0100 Subject: [PATCH] set bezier control points in the middle --- src/yugecin/opsudance/sbv2/movers/CubicStoryboardMover.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yugecin/opsudance/sbv2/movers/CubicStoryboardMover.java b/src/yugecin/opsudance/sbv2/movers/CubicStoryboardMover.java index d571f332..5c10eb42 100644 --- a/src/yugecin/opsudance/sbv2/movers/CubicStoryboardMover.java +++ b/src/yugecin/opsudance/sbv2/movers/CubicStoryboardMover.java @@ -29,8 +29,8 @@ public class CubicStoryboardMover extends StoryboardMultipointMover { @Override public void setInitialStart(Vec2f 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 / 3, (start.y + end.y) * 2 / 3)); + super.addPoint(new Vec2f((start.x + end.x) / 2, (start.y + end.y) / 2)); + super.addPoint(new Vec2f((start.x + end.x) / 2, (start.y + end.y) / 2)); } @Override