Rotation for raspi working

This commit is contained in:
s-prechtl 2022-12-14 12:45:01 +01:00
parent 00cc924a2a
commit 13850368c6

View file

@ -60,7 +60,7 @@ class Raspberry extends Entity {
push();
noFill();
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);
if (!this.showHitbox) {
noStroke();