track aabb

This commit is contained in:
2025-02-20 16:39:19 -07:00
parent 03e0b1afcb
commit 10d462edaf
4 changed files with 73 additions and 24 deletions

View File

@@ -42,18 +42,6 @@ export class EditTrackState extends State<States> {
const track = getContextItem<TrackSystem>("track");
const doodler = getContextItem<Doodler>("doodler");
// For moving a segment, i.e. the currently active one
// const segment = track.lastSegment;
// if (segment) {
// const firstPoint = segment.points[0].copy();
// const { x, y } = inputManager.getMouseLocation();
// segment.points.forEach((p, i) => {
// const relativePoint = Vector.sub(p, firstPoint);
// p.set(x, y);
// p.add(relativePoint);
// });
// }
if (this.selectedSegment) {
const segment = this.selectedSegment;
const firstPoint = segment.points[0].copy();