fix: scale position
This commit is contained in:
parent
6a26c5222c
commit
3d20f0310c
|
@ -116,7 +116,7 @@ export class Body extends AbstractBody {
|
||||||
|
|
||||||
get position() {
|
get position() {
|
||||||
const {x, y} = this.matterBody.position;
|
const {x, y} = this.matterBody.position;
|
||||||
return Vector.scale(Vector.sub([x, y], this.origin), SCALE);
|
return Vector.sub(Vector.scale([x, y], SCALE), this.origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
set position(position) {
|
set position(position) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user