From 13850368c6361a27037e6fc43bcf6eba196b4ce8 Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Wed, 14 Dec 2022 12:45:01 +0100 Subject: [PATCH] Rotation for raspi working --- frontend/models/Raspberry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/models/Raspberry.ts b/frontend/models/Raspberry.ts index f2cb1e4..c8a90d6 100644 --- a/frontend/models/Raspberry.ts +++ b/frontend/models/Raspberry.ts @@ -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();