track drawing and shape tweaks, train controls, fps counter, non-looping
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user