Skip to content

Commit

Permalink
fix: incorrect behavior in move
Browse files Browse the repository at this point in the history
  • Loading branch information
CAIMEOX authored Apr 4, 2024
1 parent 4b1e1a0 commit 6130877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function center(b: Space): Vec3 {
}

function move(b: Space, point: Vec3): Space {
return b.map(point.add);
return b.map((p) => point.add(p));
}

function moveTo(b: Space, from: Vec3, to: Vec3): Space {
Expand Down

0 comments on commit 6130877

Please sign in to comment.