fix transform rotate
This commit is contained in:
parent
a540e14cae
commit
5149b9986f
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue