Rotation for raspi working
This commit is contained in:
parent
00cc924a2a
commit
13850368c6
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class Raspberry extends Entity {
|
||||||
push();
|
push();
|
||||||
noFill();
|
noFill();
|
||||||
translate(this.position.x, this.position.y);
|
translate(this.position.x, this.position.y);
|
||||||
// rotate((PI/4)*(this.velocity));
|
rotate((PI/2)*(this.velocity/Raspberry.maxVelocity));
|
||||||
image(this.image, 0, 0, this.width, this.height);
|
image(this.image, 0, 0, this.width, this.height);
|
||||||
if (!this.showHitbox) {
|
if (!this.showHitbox) {
|
||||||
noStroke();
|
noStroke();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue