Skip to content

Commit

Permalink
fix: kpPos use kpMoveBy to match pos comp
Browse files Browse the repository at this point in the history
  • Loading branch information
KeSuave committed Dec 13, 2024
1 parent e8253ab commit fe17f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function pos(k: KAPLAYCtx, ...args: KPVec2Args): KPPosComp {
},

kpMove(...margs: KPVec2Args) {
this.setKPPosition(vec2FromArgs(...margs).mul(k.dt()));
this.kpMoveBy(vec2FromArgs(...margs).mul(k.dt()));
},
kpMoveBy(...margs: KPVec2Args) {
const vec = vec2FromArgs(...margs);
Expand Down

0 comments on commit fe17f10

Please sign in to comment.