feat: initial design of parameter ui

This commit is contained in:
2024-03-06 18:31:06 +01:00
parent 154c9a8383
commit 71ebbfc348
21 changed files with 1667 additions and 337 deletions

View File

@@ -9,8 +9,6 @@
let samples = 20;
console.log("edge");
const curve = new CubicBezierCurve(
new Vector2(from.position.x + 20, from.position.y),
new Vector2(from.position.x + 2, from.position.y),
@@ -33,10 +31,10 @@
last_from_x = new_x;
last_from_y = new_y;
}
curve.v0.set(from.position.x + 5, from.position.y + 1.25);
curve.v1.set(from.position.x + 6, from.position.y + 1.25);
curve.v2.set(to.position.x - 1, to.position.y + 1.25);
curve.v3.set(to.position.x, to.position.y + 1.25);
curve.v0.set(from.position.x + 5, from.position.y + 5 / 8);
curve.v1.set(from.position.x + 7, from.position.y + 5 / 8);
curve.v2.set(to.position.x - 2, to.position.y + 2.55);
curve.v3.set(to.position.x + 0.2, to.position.y + 2.55);
points = curve.getPoints(samples).map((p) => new Vector3(p.x, 0, p.y));
}