track drawing and shape tweaks, train controls, fps counter, non-looping

This commit is contained in:
2025-02-13 03:23:37 -07:00
parent e3194e45ff
commit 43a5268ed5
12 changed files with 631 additions and 128 deletions

View File

@@ -86,6 +86,7 @@ export class ComplexPath {
}
export class PathSegment {
id: string;
points: [Vector, Vector, Vector, Vector];
length: number;
@@ -95,6 +96,7 @@ export class PathSegment {
prev?: PathSegment;
constructor(points: [Vector, Vector, Vector, Vector]) {
this.id = crypto.randomUUID();
this.points = points;
this.length = this.calculateApproxLength(100);
this.startingLength = Math.round(this.length);