fix transform rotate

This commit is contained in:
John Alanbrook 2024-10-02 12:16:34 -05:00
parent a540e14cae
commit 5149b9986f

View file

@ -94,7 +94,7 @@ var entity = {
this.pos = this.pos.add(vec); this.pos = this.pos.add(vec);
}, },
rotate(x) { rotate(x) {
this.transform.rotate(x, [0, 0, -1]); this.transform.rotate([0, 0, -1],x);
}, },
grow(vec) { grow(vec) {
if (typeof vec === "number") vec = [vec, vec]; if (typeof vec === "number") vec = [vec, vec];